mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Apply shellcheck on install_xapian.sh
This commit is contained in:
parent
e1bf7caa9a
commit
ca27b89a8b
@ -13,37 +13,35 @@ export CXXFLAGS=
|
|||||||
export CPPFLAGS=
|
export CPPFLAGS=
|
||||||
|
|
||||||
# prepare
|
# prepare
|
||||||
rm -rf $VIRTUAL_ENV/packages
|
rm -rf "$VIRTUAL_ENV/packages"
|
||||||
mkdir -p $VIRTUAL_ENV/packages && cd $VIRTUAL_ENV/packages
|
mkdir -p "$VIRTUAL_ENV/packages" && cd "$VIRTUAL_ENV/packages" || exit 1
|
||||||
|
|
||||||
CORE=xapian-core-$VERSION
|
CORE=xapian-core-$VERSION
|
||||||
BINDINGS=xapian-bindings-$VERSION
|
BINDINGS=xapian-bindings-$VERSION
|
||||||
|
|
||||||
# download
|
# download
|
||||||
echo "Downloading source..."
|
echo "Downloading source..."
|
||||||
curl -O https://oligarchy.co.uk/xapian/$VERSION/${CORE}.tar.xz
|
curl -O "https://oligarchy.co.uk/xapian/$VERSION/${CORE}.tar.xz"
|
||||||
curl -O https://oligarchy.co.uk/xapian/$VERSION/${BINDINGS}.tar.xz
|
curl -O "https://oligarchy.co.uk/xapian/$VERSION/${BINDINGS}.tar.xz"
|
||||||
|
|
||||||
# extract
|
# extract
|
||||||
echo "Extracting source..."
|
echo "Extracting source..."
|
||||||
tar xf ${CORE}.tar.xz
|
tar xf "${CORE}.tar.xz"
|
||||||
tar xf ${BINDINGS}.tar.xz
|
tar xf "${BINDINGS}.tar.xz"
|
||||||
|
|
||||||
# install
|
# install
|
||||||
echo "Installing Xapian-core..."
|
echo "Installing Xapian-core..."
|
||||||
cd $VIRTUAL_ENV/packages/${CORE}
|
cd "$VIRTUAL_ENV/packages/${CORE}" || exit 1
|
||||||
./configure --prefix=$VIRTUAL_ENV && make && make install
|
./configure --prefix="$VIRTUAL_ENV" && make && make install
|
||||||
|
|
||||||
PYV=`python -c "import sys;t='{v[0]}'.format(v=list(sys.version_info[:1]));sys.stdout.write(t)";`
|
|
||||||
|
|
||||||
PYTHON_FLAG=--with-python3
|
PYTHON_FLAG=--with-python3
|
||||||
|
|
||||||
echo "Installing Xapian-bindings..."
|
echo "Installing Xapian-bindings..."
|
||||||
cd $VIRTUAL_ENV/packages/${BINDINGS}
|
cd "$VIRTUAL_ENV/packages/${BINDINGS}" || exit 1
|
||||||
./configure --prefix=$VIRTUAL_ENV $PYTHON_FLAG XAPIAN_CONFIG=$VIRTUAL_ENV/bin/xapian-config && make && make install
|
./configure --prefix="$VIRTUAL_ENV" $PYTHON_FLAG XAPIAN_CONFIG="$VIRTUAL_ENV/bin/xapian-config" && make && make install
|
||||||
|
|
||||||
# clean
|
# clean
|
||||||
rm -rf $VIRTUAL_ENV/packages
|
rm -rf "$VIRTUAL_ENV/packages"
|
||||||
|
|
||||||
# test
|
# test
|
||||||
python -c "import xapian"
|
python -c "import xapian"
|
||||||
|
Loading…
Reference in New Issue
Block a user