diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2021-08-19 14:35:50 +0000 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2021-08-23 12:19:03 +0200 |
commit | d6e93b7ee0b5c4ea3e8c1c0f172d56d3f844de34 (patch) | |
tree | be6dcd5878e758a726625fd2f536b0c0aeee7ad3 /autogen.sh | |
parent | 844ad9ad797fb5a8bdab03fafd215dfa0bf314dc (diff) | |
download | flatpak-d6e93b7ee0b5c4ea3e8c1c0f172d56d3f844de34.tar.gz |
bash: fix issues identified through shellcheck
Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,16 +1,16 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. -test -n "$srcdir" || srcdir=`dirname "$0"` +test -n "$srcdir" || srcdir=$(dirname "$0") test -n "$srcdir" || srcdir=. -olddir=`pwd` +olddir=$(pwd) cd "$srcdir" -AUTORECONF=`which autoreconf` -if test -z $AUTORECONF; then - echo "*** No autoreconf found, please install it ***" - exit 1 +AUTORECONF=$(which autoreconf) +if test -z "$AUTORECONF"; then + echo "*** No autoreconf found, please install it ***" + exit 1 fi # INSTALL are required by automake, but may be deleted by clean @@ -26,7 +26,7 @@ sed -e 's,$(libglnx_srcpath),subprojects/libglnx,g' < subprojects/libglnx/Makefi sed -e 's,$(bwrap_srcpath),subprojects/bubblewrap,g' < subprojects/bubblewrap/Makefile-bwrap.am >subprojects/bubblewrap/Makefile-bwrap.am.inc GTKDOCIZE=$(which gtkdocize 2>/dev/null) -if test -z $GTKDOCIZE; then +if test -z "$GTKDOCIZE"; then echo "*** You don't have gtk-doc installed, and thus won't be able to generate the documentation. ***" rm -f gtk-doc.make cat > gtk-doc.make <<EOF |