diff options
author | Werner Koch <[email protected]> | 2012-01-16 17:43:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-01-16 17:43:51 +0000 |
commit | 9b16cd09d127a46f8772a2a2ec426767356d1ae2 (patch) | |
tree | cf704eecd057e6106556d30194dc85c7c6a33ecd | |
parent | Automate W32 installer building. (diff) | |
download | gnupg-9b16cd09d127a46f8772a2a2ec426767356d1ae2.tar.gz gnupg-9b16cd09d127a46f8772a2a2ec426767356d1ae2.zip |
w32: Allow passing a relative name for the tarball
* scripts/mk-w32-dist: Prepend PWD to TARBALL.
-rwxr-xr-x | scripts/mk-w32-dist | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mk-w32-dist b/scripts/mk-w32-dist index aad2728bf..eb5e6554c 100755 --- a/scripts/mk-w32-dist +++ b/scripts/mk-w32-dist @@ -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 |