summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2020-05-03 13:39:55 -0400
committerPaul Smith <psmith@gnu.org>2020-05-03 14:23:56 -0400
commitc8a6263eb519ccca6ef87fc405a53d255dc0b2e1 (patch)
tree8a2d865069abc0a567358e6faaf0dbd5c1ea8605 /scripts
parenta015d1f8225004222851b02fe915e2ff40452d25 (diff)
downloadmake-git-c8a6263eb519ccca6ef87fc405a53d255dc0b2e1.tar.gz
Convert [ ... ] to test ... in scripting.
The "[" link may be missing during OS boostrapping. * build.sh: Convert "[ ... ]" to "test ..." * maintMakefile: Ditto. * scripts/copyright-update: Ditto * tests/scripts/features/reinvoke: Ditto * tests/scripts/features/targetvars: Ditto
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/copyright-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/copyright-update b/scripts/copyright-update
index 6728fd9f..5a0ddd2c 100755
--- a/scripts/copyright-update
+++ b/scripts/copyright-update
@@ -17,7 +17,7 @@ getfiles () {
run () {
cmd=$(command -v "$update") || die "Cannot locate update-copyright ($update)"
- [ -x "$cmd" ] || die "Cannot locate update-copyright ($update)"
+ test -x "$cmd" || die "Cannot locate update-copyright ($update)"
force=false
@@ -30,9 +30,9 @@ run () {
if $force; then
: just do it
- elif [ ! -f src/makeint.h ]; then
+ elif test ! -f src/makeint.h; then
die "Run in the root of the GNU make workspace"
- elif [ -f configure ]; then
+ elif test -f configure; then
die "Run in a clean workspace (git clean -fdX)"
fi