Fix ./configure again and add instructions

master
knotteye 2021-03-01 13:57:59 -06:00
parent d9765cb681
commit d068cf8c2c
2 changed files with 6 additions and 3 deletions

View File

@ -3,3 +3,8 @@
Tabletop Library is a tool for viewing and editing collections of pdf files. I use it to organize PDFs for tabletop games. Tabletop Library is a tool for viewing and editing collections of pdf files. I use it to organize PDFs for tabletop games.
I mostly built this to learn PyQt5 and surrounding build systems but it turned out actually useful. I mostly built this to learn PyQt5 and surrounding build systems but it turned out actually useful.
### Instructions
It's important that you don't use quotes when you call ./configure
`. ./configure --prefix /usr/local --libdir /lib64 && make && sudo make install`

4
configure vendored
View File

@ -6,7 +6,6 @@ do
# specify with --prefix "/whatever" # specify with --prefix "/whatever"
--prefix) --prefix)
export PREFIX="$2" export PREFIX="$2"
sed "s#PREFIX := /usr/local#PREFIX := $2#g" Makefile | tee Makefile > /dev/null
shift # Remove argument name from processing shift # Remove argument name from processing
shift # Remove argument value from processing shift # Remove argument value from processing
;; ;;
@ -14,8 +13,7 @@ do
# specify with --libdir "/libwhatver" # specify with --libdir "/libwhatver"
--libdir) --libdir)
export LIBDIR="$2" 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
sed "s#LIB_DIR = [\']/lib[\']#LIB_DIR = \'$2\'#g" app.py | tee app.py > /dev/null
shift shift
shift shift
;; ;;