user friendly modifications to install_xapian.sh...

check if user supplied version on command line and exit with message if they didn't
This commit is contained in:
Kurt Neufeld 2017-11-04 14:39:48 -06:00 committed by Jorge Leitao
parent 02653af62c
commit 2247b23d3c
1 changed files with 7 additions and 1 deletions

View File

@ -1,9 +1,15 @@
#!/usr/bin/env bash
# first argument of the script is Xapian version (e.g. 1.2.19)
VERSION=$1
if [ -z "$VERSION" ]; then
echo "usage: $0 version_number" 1>&2
exit 1
fi
# prepare
mkdir $VIRTUAL_ENV/packages && cd $VIRTUAL_ENV/packages
mkdir -p $VIRTUAL_ENV/packages && cd $VIRTUAL_ENV/packages
CORE=xapian-core-$VERSION
BINDINGS=xapian-bindings-$VERSION