make_tarball.sh: Run through shellcheck

This commit is contained in:
Rosen Penev 2019-11-27 17:53:58 -08:00 committed by Fabian Homborg
parent b5d0075406
commit a755bc5cf6

View file

@ -32,7 +32,7 @@ fi
wd="$PWD"
# Get the version from git-describe
VERSION=`git describe --dirty 2>/dev/null`
VERSION=$(git describe --dirty 2>/dev/null)
# The name of the prefix, which is the directory that you get when you untar
prefix="fish-$VERSION"
@ -48,10 +48,10 @@ rm -f "$path" "$path".gz
git archive --format=tar --prefix="$prefix"/ HEAD > "$path"
# tarball out the documentation, generate a version file
PREFIX_TMPDIR=`mktemp -d`
cd $PREFIX_TMPDIR
echo $VERSION > version
cmake $wd
PREFIX_TMPDIR=$(mktemp -d)
cd "$PREFIX_TMPDIR"
echo "$VERSION" > version
cmake "$wd"
make doc
TAR_APPEND="$TAR --append --file=$path --mtime=now --owner=0 --group=0 \