1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00

w32: Allow passing a relative name for the tarball

* scripts/mk-w32-dist: Prepend PWD to TARBALL.
This commit is contained in:
Werner Koch 2012-01-16 18:43:51 +01:00
parent 81839d2861
commit 9b16cd09d1

View File

@ -69,10 +69,11 @@ builddir=w32-build-root
tarball="$1"
patchfile="$2"
if [ ! -f "$tarball" -o "$(echo "$tarball" | head -c 1)" != "/" ]; then
echo "$PGM: tarball does not exist or has no absolute name" >&2
if [ ! -f "$tarball" ]; then
echo "$PGM: tarball does not exist" >&2
exit 1
fi
[ "$(echo "$tarball" | head -c 1)" != "/" ] && tarball="$(pwd)/$tarball"
if [ -n "$patchfile" -a ! -f "$patchfile" ]; then
echo "$PGM: patchfile does not exist" >&2