add install instruction for pdf2ook.py script
This commit is contained in:
parent
d85f5deae6
commit
6b66b83f5d
22
README.md
22
README.md
@ -1,4 +1,26 @@
|
|||||||
# README
|
# README
|
||||||
|
## INSTALL pdf2book
|
||||||
|
```
|
||||||
|
PREFIX="$HOME/.local"
|
||||||
|
LIBDIR=$PREFIX/lib
|
||||||
|
BINDIR=$PREFIX/bin
|
||||||
|
SRCDIR=$LIBDIR/md2tex.git
|
||||||
|
mkdir -p $LIBDIR
|
||||||
|
git clone ssh://git@git.wlankabel.at:1516/aqoaba/md2tex.git $SRCDIR
|
||||||
|
python3 -m venv $SRCDIR/.venv
|
||||||
|
. $SRCDIR/.venv/bin/activate
|
||||||
|
pip3 install pypdf
|
||||||
|
echo -n '''#!/bin/bash
|
||||||
|
SRCDIR='$SRCDIR'
|
||||||
|
VENVDIR=$SRCDIR/.venv
|
||||||
|
. $VENVDIR/bin/activate
|
||||||
|
python3 $SRCDIR/pdf2book.py $@
|
||||||
|
deactivate
|
||||||
|
'''> $BINDIR/pdf2book
|
||||||
|
chmod +x $BINDIR/pdf2book
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
All names are temporary and happy about suggestions of improvement.
|
All names are temporary and happy about suggestions of improvement.
|
||||||
Dependencies:
|
Dependencies:
|
||||||
|
Loading…
Reference in New Issue
Block a user