[OS-BUILD PATCHv19 3/4] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-12-04 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv19 2/4] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-12-04 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv19 4/4] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-12-04 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv19 1/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-12-04 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv19 0/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-12-04 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv18 2/4] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-24 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv18 4/4] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-24 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv18 3/4] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-24 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv18 1/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-24 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv18 0/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-24 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv17 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv17 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv17 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv17 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv17 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv16 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv16 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv16 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv16 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv16 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv15 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv15 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv15 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv15 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv15 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv14 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv14 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv14 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv14 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv14 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv13 2/4] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-dump-variables target for dynamically deriving variables from Makefile.common and dumping them. Create new dist-clean-scripts target to clean up generated scripts. Create new dist-self-test target and hook up the BATS self tests.

[OS-BUILD PATCHv13 4/4] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv13 3/4] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv13 1/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv13 0/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-23 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv12 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv12 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-self-test target and hook up the BATS self tests. Check for the presence of /usr/bin/bats (via 'test -x') and complain if it is not installed. • Makefile.common: make HEAD an overridable variable. Change GITID:= $(shell $(GIT) log

[OS-BUILD PATCHv12 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv12 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv12 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv11 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-self-test target and hook up the BATS self tests. Check for the presence of /usr/bin/bats (via 'test -x') and complain if it is not installed. • Makefile.common: make HEAD an overridable variable. Change GITID:= $(shell $(GIT) log

[OS-BUILD PATCHv11 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv11 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv11 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv11 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv10 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv10 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-self-test target and hook up the BATS self tests. Check for the presence of /usr/bin/bats (via 'test -x') and complain if it is not installed. • Makefile.common: make HEAD an overridable variable. Change GITID:= $(shell $(GIT) log

[OS-BUILD PATCHv10 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv10 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv10 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv9 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv9 3/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv9 2/5] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-self-test target and hook up the BATS self tests. Check for the presence of /usr/bin/bats (via 'test -x') and complain if it is not installed. • Makefile.common: make HEAD an overridable variable. Change GITID:= $(shell $(GIT) log

[OS-BUILD PATCHv9 4/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv9 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv2 18/20] [redhat] ark-rebase-patches.sh: Fix for shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Changes actually consist of disabling shellcheck on a few lines: • SC2086: Double quote to prevent globbing and word splitting. • SC2059: Don't use variables in the printf format string. Use printf... For the former, in the two gitlab commands involved, GITLAB_CONFIG_OPT

[OS-BUILD PATCHv2 20/20] build_configs.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2001: See if you can use ${variable//search/replace} instead. SC2046: Quote this to prevent word splitting. SC2086: Double quote to prevent globbing and word splitting. SC2162: read without -r will mangle backslashes. SC2181: Check exit code directly with e.g. 'if mycmd;',

[OS-BUILD PATCHv2 19/20] genspec.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. SC2086: Double quote to prevent globbing and word splitting. SC2196: egrep is non-standard and deprecated. Use grep -E instead. SC2034: appears unused. Change to #!/bin/bash explicitly to allow

[OS-BUILD PATCHv2 16/20] [redhat] merge-subtrees.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2162: read without -r will mangle backslashes SC2086: Double quote to prevent globbing and word splitting Rewrote main loop so it will work. Signed-off-by: Ben Crocker merge-subtrees.h: fix Signed-off-by: Ben Crocker --- redhat/scripts/merge-subtrees.sh | 6 +++--- 1

[OS-BUILD PATCHv2 17/20] [redhat] ark-create-release.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Fix syntax flagged by shellcheck: SC2086: Double quote to prevent globbing and word splitting. (There is only one instance.) Signed-off-by: Ben Crocker --- redhat/scripts/ci/ark-create-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OS-BUILD PATCHv2 15/20] [redhat] rh-dist-git.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2086: Double quote to prevent globbing and word splitting. SC2145: Argument mixes string and array. Use * or separate argument. SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Signed-off-by: Ben Crocker --- redhat/scripts/rh-dist-git.sh | 33

[OS-BUILD PATCHv2 13/20] [redhat] x86_rngd.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2039: bash-isms SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. Signed-off-by: Ben Crocker --- redhat/scripts/x86_rngd.sh | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/redhat/scripts/x86_rngd.sh

[OS-BUILD PATCHv2 14/20] [redhat] update_scripts.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2231: Quote expansions in this for loop glob to prevent wordsplitting. SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/update_scripts.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[OS-BUILD PATCHv2 12/20] [redhat] parallel_xz.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/parallel_xz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redhat/parallel_xz.sh b/redhat/parallel_xz.sh index bc08a548dbee..f1b6cdd1594d 100755 ---

[OS-BUILD PATCHv2 11/20] [redhat] expand_srpm.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2034: tree appears unused. Verify use (or export if used externally). SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options. SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/scripts/expand_srpm.sh | 7

[OS-BUILD PATCHv2 10/20] [redhat] create-tarball.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2006: Use $(...) notation instead of legacy backticked `...`. SC1083: This { is literal. Check expression (missing ;/\n?) or quote it. SC2086: Double quote to prevent globbing and word splitting. BUT: Disable shellcheck on last step: On the last step, we DEPEND on word

[OS-BUILD PATCHv2 7/20] [redhat] new_release.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2007: Use $((..)) instead of deprecated $[..] SC2086: Double quote to prevent globbing and word splitting. SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. EVEN BETTER: use [[ p || q ]]. Signed-off-by: Ben Crocker --- redhat/scripts/new_release.sh | 30

[OS-BUILD PATCHv2 6/20] [redhat] download_cross.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2068: Double quote array expansions to avoid re-splitting elements. SC2086: Double quote to prevent globbing and word splitting. SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. Signed-off-by: Ben Crocker --- redhat/scripts/download_cross.sh

[OS-BUILD PATCHv2 8/20] [redhat] clone_tree.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2006: Use $(...) notation instead of legacy backticked `...`. SC2013: To read lines rather than words, pipe/redirect to a 'while read' loop. SC2086: Double quote to prevent globbing and word splitting. SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. EVEN

[OS-BUILD PATCHv2 9/20] [redhat] generate_bls_conf.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2086: Double quote to prevent globbing and word splitting. Ignoring: SC1091: Not following: /etc/os-release was not specified as input (see shellcheck -x). SC2154: bootprefix is referenced but not assigned. It is perfectly OK for bootprefix not to be assigned in this

[OS-BUILD PATCHv2 5/20] [redhat] create_distgit_changelog.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/scripts/create_distgit_changelog.sh | 22 ++ 1 file changed, 10 insertions(+),

[OS-BUILD PATCHv2 4/20] [redhat] generate_cross_report.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. SC2006: Use $(...) notation instead of legacy backticked `...`. SC2086: Double quote to prevent globbing and word splitting. SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with

[OS-BUILD PATCHv2 3/20] [redhat] run_kabi-dw.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2039: In POSIX sh, == in place of = is undefined. SC2086: Double quote to prevent globbing and word splitting. Ignore: SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Also, change 'if..elif..else..fi' block to case..esac. Signed-off-by: Ben Crocker

[OS-BUILD PATCHv2 2/20] mod-blacklist.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2006: Use $(...) notation instead of legacy backticked `...`. SC2013: To read lines rather than words, pipe/redirect to a 'while read' loop. ??? SC2086: Double quote to prevent globbing and word splitting. SC2144: -f doesn't work with globs. Use a for loop. SC2155: Declare

[OS-BUILD PATCHv2 0/20] [redhat] All shell scripts: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Fix syntax flagged by shellcheck in all scripts in the redhat/ subtree. A complete 'git log -p' of all commits on this branch can be found at: http://pastebin.test.redhat.com/917268 SC2001: See if you can use ${variable//search/replace} instead.\ SC2002: Useless

[OS-BUILD PATCHv2 1/20] [redhat] scripts/configdiff.sh: Fix syntax flagged by shellcheck

2020-11-19 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2001: See if you can use ${variable//search/replace} instead. SC2045: Iterating over ls output is fragile. Use globs. SC2046: Quote this (command) to prevent word splitting. SC2086: Double quote to prevent globbing and word splitting. SC2162: read without -r will mangle

[OS-BUILD PATCHv8 4/4] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-18 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv8 3/4] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-18 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv8 2/4] [redhat] Makefile, Makefile.common, egit.sh, 1005-dist-dump-variables.bats

2020-11-18 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-self-test target and hook up the BATS self tests. Check for the presence of /usr/bin/bats (via 'test -x') and complain if it is not installed. • Makefile.common: make HEAD an overridable variable. Change GITID:= $(shell $(GIT) log

[OS-BUILD PATCHv8 1/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-18 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv8 0/4] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-18 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCHv7 4/5] [redhat] self-test/1001-rpmlint.bats, 1003-rpminspect.bats

2020-11-16 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker 1003-rpminspect.bats: initial commit. Like the 1001-rpmlint.bats test, this test • tests for exactly one SRPM • runs rpminspect (instead of rpmlint) on that SRPM, after checking for the presence of the /usr/bin/rpminspect. Both 1001-rpmlint.bats and 1003-rpminspect.bats

[OS-BUILD PATCHv7 2/5] [redhat] egit.sh initial commit

2020-11-16 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker This is a sample script providing a thin layer over the git command. It is meant to substitute in redhat/Makefile and Makefile.common via the GIT macro defined in Makefile. Each git subcommand currently used by Makefile and Makefile.common can be broken out into its own case.

[OS-BUILD PATCHv7 5/5] [redhat] self-test/0001-shellcheck.bats: check for shellcheck

2020-11-16 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Check via 'test -x' whether /usr/bin/shellcheck is present; if not, skip the test and print a message. Signed-off-by: Ben Crocker --- redhat/self-test/0001-shellcheck.bats | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[OS-BUILD PATCHv7 3/5] [redhat] Makefile.common, self-test/egit.sh, 1005-dist-dump-variables.bats

2020-11-16 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker • Makefile: Create new dist-self-test target and hook up the BATS self tests. Check for the presence of /usr/bin/bats (via 'test -x') and complain if it is not installed. • Makefile.common: make HEAD an overridable variable. Change GITID:= $(shell $(GIT) log

[OS-BUILD PATCHv7 1/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-16 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker GIT ?= git and replace literal occurrences of 'git' with $(GIT). This change enables us to override 'git' with, e.g., some arbitrary shell script that prints additional information and/or does additional processing before and/or after (or even instead of) invoking

[OS-BUILD PATCHv7 0/5] [redhat] Add GIT macro to Makefile and Makefile.common:

2020-11-16 Thread GitLab Bridge on behalf of bcrocker
From: bcrocker on gitlab.com Add a GIT macro to Makefile: GIT ?= git and replace literal occurrences of 'git' with $(GIT)\ in Makefile and Makefile.common. This change enables us to override 'git' with, e.g., some\ arbitrary shell script that prints additional information\ and/or does

[OS-BUILD PATCH 18/20] [redhat] ark-rebase-patches.sh: Fix for shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Changes actually consist of disabling shellcheck on a few lines: • SC2086: Double quote to prevent globbing and word splitting. • SC2059: Don't use variables in the printf format string. Use printf... For the former, in the two gitlab commands involved, GITLAB_CONFIG_OPT

[OS-BUILD PATCH 20/20] build_configs.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2001: See if you can use ${variable//search/replace} instead. SC2046: Quote this to prevent word splitting. SC2086: Double quote to prevent globbing and word splitting. SC2162: read without -r will mangle backslashes. SC2181: Check exit code directly with e.g. 'if mycmd;',

[OS-BUILD PATCH 19/20] genspec.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. SC2086: Double quote to prevent globbing and word splitting. SC2196: egrep is non-standard and deprecated. Use grep -E instead. Change to #!/bin/bash explicitly to allow SC2039: bash-isms

[OS-BUILD PATCH 17/20] [redhat] ark-create-release.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker Fix syntax flagged by shellcheck: SC2086: Double quote to prevent globbing and word splitting. (There is only one instance.) Signed-off-by: Ben Crocker --- redhat/scripts/ci/ark-create-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OS-BUILD PATCH 10/20] [redhat] create-tarball.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2006: Use $(...) notation instead of legacy backticked `...`. SC1083: This { is literal. Check expression (missing ;/\n?) or quote it. SC2086: Double quote to prevent globbing and word splitting. BUT: Disable shellcheck on last step: On the last step, we DEPEND on word

[OS-BUILD PATCH 11/20] [redhat] expand_srpm.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2034: tree appears unused. Verify use (or export if used externally). SC2035: Use ./*glob* or -- *glob* so names with dashes won't become options. SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/scripts/expand_srpm.sh | 7

[OS-BUILD PATCH 15/20] [redhat] rh-dist-git.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2086: Double quote to prevent globbing and word splitting. SC2145: Argument mixes string and array. Use * or separate argument. SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Signed-off-by: Ben Crocker --- redhat/scripts/rh-dist-git.sh | 33

[OS-BUILD PATCH 12/20] [redhat] parallel_xz.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/parallel_xz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redhat/parallel_xz.sh b/redhat/parallel_xz.sh index bc08a548dbee..f1b6cdd1594d 100755 ---

[OS-BUILD PATCH 14/20] [redhat] update_scripts.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2231: Quote expansions in this for loop glob to prevent wordsplitting. SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Ben Crocker --- redhat/update_scripts.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[OS-BUILD PATCH 8/20] [redhat] clone_tree.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2006: Use $(...) notation instead of legacy backticked `...`. SC2013: To read lines rather than words, pipe/redirect to a 'while read' loop. SC2086: Double quote to prevent globbing and word splitting. SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.

[OS-BUILD PATCH 16/20] [redhat] merge-subtrees.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2162: read without -r will mangle backslashes Globally disable: SC2086 (Double quote to prevent globbing and word splitting) WARNING: I don't think this script ever would have worked, before or after shellcheck-suggested changes; I think the logic should be: for entry in

[OS-BUILD PATCH 13/20] [redhat] x86_rngd.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2039: bash-isms SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. Signed-off-by: Ben Crocker --- redhat/scripts/x86_rngd.sh | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/redhat/scripts/x86_rngd.sh

[OS-BUILD PATCH 3/20] [redhat] run_kabi-dw.sh: Fix syntax flagged by shellcheck

2020-11-13 Thread GitLab Bridge on behalf of bcrocker
From: Ben Crocker SC2039: In POSIX sh, == in place of = is undefined. SC2086: Double quote to prevent globbing and word splitting. Ignore: SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. Also, change 'if..elif..else..fi' block to case..esac. Signed-off-by: Ben Crocker

  1   2   >