mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-03-16 22:20:31 +00:00
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:
parent
02653af62c
commit
2247b23d3c
1 changed files with 7 additions and 1 deletions
|
|
@ -1,9 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# first argument of the script is Xapian version (e.g. 1.2.19)
|
# first argument of the script is Xapian version (e.g. 1.2.19)
|
||||||
|
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
|
|
||||||
|
if [ -z "$VERSION" ]; then
|
||||||
|
echo "usage: $0 version_number" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# prepare
|
# prepare
|
||||||
mkdir $VIRTUAL_ENV/packages && cd $VIRTUAL_ENV/packages
|
mkdir -p $VIRTUAL_ENV/packages && cd $VIRTUAL_ENV/packages
|
||||||
|
|
||||||
CORE=xapian-core-$VERSION
|
CORE=xapian-core-$VERSION
|
||||||
BINDINGS=xapian-bindings-$VERSION
|
BINDINGS=xapian-bindings-$VERSION
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue