tabletoplibrary/configure

22 lines
536 B
Plaintext
Raw Normal View History

2021-03-01 12:57:27 -06:00
#!/bin/sh
for arg in "$@"
do
case $arg in
# Install bin to PREFIX/bin
# specify with --prefix "/whatever"
--prefix)
export PREFIX="$2"
shift # Remove argument name from processing
shift # Remove argument value from processing
;;
# Install viewer files to LIBDIR/tabletoplibrary
# specify with --libdir "/libwhatver"
--libdir)
export LIBDIR="$2"
sed "s#LIB_DIR = [\']/lib[\']#LIB_DIR = \'$2\'#g" app.py | tee app.py
2021-03-01 12:57:27 -06:00
shift
shift
;;
esac
done