|
|
@ -6,8 +6,9 @@
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
set -x
|
|
|
|
|
|
|
|
|
|
|
|
TARFILE=fping-*.tar.gz
|
|
|
|
make dist
|
|
|
|
if [ ! -f "$TARFILE" ]; then
|
|
|
|
VERSION=$(ls fping-*.tar.gz | sed -e 's/^fping-//' | sed -e 's/\.tar\.gz$//')
|
|
|
|
|
|
|
|
if [ -z "$VERSION" ]; then
|
|
|
|
echo "tar.gz file not found." >&2
|
|
|
|
echo "tar.gz file not found." >&2
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -15,7 +16,7 @@ fi
|
|
|
|
# unarchive
|
|
|
|
# unarchive
|
|
|
|
TMPDIR=$(mktemp -d --tmpdir=.)
|
|
|
|
TMPDIR=$(mktemp -d --tmpdir=.)
|
|
|
|
cd $TMPDIR
|
|
|
|
cd $TMPDIR
|
|
|
|
tar xf ../$TARFILE
|
|
|
|
tar xf ../fping-$VERSION.tar.gz
|
|
|
|
DIRNAME=$(ls)
|
|
|
|
DIRNAME=$(ls)
|
|
|
|
|
|
|
|
|
|
|
|
# build
|
|
|
|
# build
|
|
|
|