A tool for viewing and editing collections of pdfs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tabletoplibrary/configure

24 lines
718 B

3 years ago
#!/bin/sh
for arg in "$@"
do
case $arg in
# Install bin to PREFIX/bin
# specify with --prefix "/whatever"
--prefix)
export PREFIX="$2"
sed "s#PREFIX := /usr/local#PREFIX := $2#g" Makefile | tee Makefile > /dev/null
3 years ago
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#LIBDIR := /lib#LIBDIR := $2#g" Makefile | tee Makefile > /dev/null
sed "s#LIB_DIR = [\']/lib[\']#LIB_DIR = \'$2\'#g" app.py | tee app.py > /dev/null
3 years ago
shift
shift
;;
esac
done