mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
w32: Allow passing a relative name for the tarball
* scripts/mk-w32-dist: Prepend PWD to TARBALL.
This commit is contained in:
parent
81839d2861
commit
9b16cd09d1
@ -69,10 +69,11 @@ builddir=w32-build-root
|
|||||||
tarball="$1"
|
tarball="$1"
|
||||||
patchfile="$2"
|
patchfile="$2"
|
||||||
|
|
||||||
if [ ! -f "$tarball" -o "$(echo "$tarball" | head -c 1)" != "/" ]; then
|
if [ ! -f "$tarball" ]; then
|
||||||
echo "$PGM: tarball does not exist or has no absolute name" >&2
|
echo "$PGM: tarball does not exist" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
[ "$(echo "$tarball" | head -c 1)" != "/" ] && tarball="$(pwd)/$tarball"
|
||||||
|
|
||||||
if [ -n "$patchfile" -a ! -f "$patchfile" ]; then
|
if [ -n "$patchfile" -a ! -f "$patchfile" ]; then
|
||||||
echo "$PGM: patchfile does not exist" >&2
|
echo "$PGM: patchfile does not exist" >&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user