diff options
| author | Stefan Kangas | 2020-12-31 12:11:31 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-12-31 12:11:31 +0100 |
| commit | efe591143f3df326c11eb65f5aeea419405d4b90 (patch) | |
| tree | b6de3651e4c9e6729f7f4104c5034134a07186bd /admin | |
| parent | 46c4bcd3927d47b1d694d80087041ef0c0112477 (diff) | |
| download | emacs-efe591143f3df326c11eb65f5aeea419405d4b90.tar.gz emacs-efe591143f3df326c11eb65f5aeea419405d4b90.zip | |
Fix some shellcheck linter warnings
* admin/diff-tar-files:
* admin/merge-gnulib:
* admin/merge-pkg-config:
* admin/update-copyright:
* build-aux/git-hooks/prepare-commit-msg:
* make-dist: Fix some shellcheck linter warnings.
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/diff-tar-files | 4 | ||||
| -rwxr-xr-x | admin/merge-gnulib | 4 | ||||
| -rwxr-xr-x | admin/merge-pkg-config | 2 | ||||
| -rwxr-xr-x | admin/update-copyright | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/admin/diff-tar-files b/admin/diff-tar-files index cbcec862329..52c7a480a4c 100755 --- a/admin/diff-tar-files +++ b/admin/diff-tar-files | |||
| @@ -35,7 +35,7 @@ old_tmp=/tmp/old.$$ | |||
| 35 | new_tmp=/tmp/new.$$ | 35 | new_tmp=/tmp/new.$$ |
| 36 | trap "rm -f $old_tmp $new_tmp; exit 1" 1 2 15 | 36 | trap "rm -f $old_tmp $new_tmp; exit 1" 1 2 15 |
| 37 | 37 | ||
| 38 | tar tzf $old_tar | sed -e 's,^[^/]*,,' | sort > $old_tmp | 38 | tar tzf "$old_tar" | sed -e 's,^[^/]*,,' | sort > $old_tmp |
| 39 | tar tzf $new_tar | sed -e 's,^[^/]*,,' | sort > $new_tmp | 39 | tar tzf "$new_tar" | sed -e 's,^[^/]*,,' | sort > $new_tmp |
| 40 | diff -u $old_tmp $new_tmp | 40 | diff -u $old_tmp $new_tmp |
| 41 | rm -f $new_tmp $old_tmp | 41 | rm -f $new_tmp $old_tmp |
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 880dc5eef53..ed701ce1339 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -105,8 +105,8 @@ for module in $AVOIDED_MODULES; do | |||
| 105 | avoided_flags="$avoided_flags --avoid=$module" | 105 | avoided_flags="$avoided_flags --avoid=$module" |
| 106 | done | 106 | done |
| 107 | 107 | ||
| 108 | "$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS \ | 108 | "$gnulib_srcdir"/gnulib-tool --dir="$src" "$GNULIB_TOOL_FLAGS" \ |
| 109 | $avoided_flags $GNULIB_MODULES && | 109 | "$avoided_flags" "$GNULIB_MODULES" && |
| 110 | rm -- "$src"lib/gl_openssl.h "$src"m4/fcntl-o.m4 \ | 110 | rm -- "$src"lib/gl_openssl.h "$src"m4/fcntl-o.m4 \ |
| 111 | "$src"m4/gl-openssl.m4 \ | 111 | "$src"m4/gl-openssl.m4 \ |
| 112 | "$src"m4/gnulib-cache.m4 "$src"m4/gnulib-tool.m4 \ | 112 | "$src"m4/gnulib-cache.m4 "$src"m4/gnulib-tool.m4 \ |
diff --git a/admin/merge-pkg-config b/admin/merge-pkg-config index 6ec54ce9edf..ab705ccebfa 100755 --- a/admin/merge-pkg-config +++ b/admin/merge-pkg-config | |||
| @@ -60,4 +60,4 @@ test -d m4 || { | |||
| 60 | 60 | ||
| 61 | printf >&2 '%s\n' "$0: copying $dir/pkg.m4 to m4/pkg.m4" | 61 | printf >&2 '%s\n' "$0: copying $dir/pkg.m4 to m4/pkg.m4" |
| 62 | 62 | ||
| 63 | cp $dir/pkg.m4 m4 | 63 | cp "$dir"/pkg.m4 m4 |
diff --git a/admin/update-copyright b/admin/update-copyright index a70d7a3ff93..f392b09c10b 100755 --- a/admin/update-copyright +++ b/admin/update-copyright | |||
| @@ -53,7 +53,7 @@ repo_files=$(git ls-files) && | |||
| 53 | # . They are GMP files, maintained by the GMP project, with their own dates. | 53 | # . They are GMP files, maintained by the GMP project, with their own dates. |
| 54 | # . Their format cannot withstand changing the contents of copyright strings. | 54 | # . Their format cannot withstand changing the contents of copyright strings. |
| 55 | 55 | ||
| 56 | updatable_files=$(find $repo_files \ | 56 | updatable_files=$(find "$repo_files" \ |
| 57 | ! -name COPYING \ | 57 | ! -name COPYING \ |
| 58 | ! -name doclicense.texi \ | 58 | ! -name doclicense.texi \ |
| 59 | ! -name gpl.texi \ | 59 | ! -name gpl.texi \ |
| @@ -74,4 +74,4 @@ updatable_files=$(find $repo_files \ | |||
| 74 | ! -name 'mini-gmp.[ch]' \ | 74 | ! -name 'mini-gmp.[ch]' \ |
| 75 | -print) && | 75 | -print) && |
| 76 | 76 | ||
| 77 | build-aux/update-copyright $updatable_files | 77 | build-aux/update-copyright "$updatable_files" |