2018-02-14 01:34:54 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
LIB=$DIR/../../lib
|
|
|
|
STYLESHEET=$DIR/book.sly
|
|
|
|
|
|
|
|
# In case tinwhistle.ily is included in file
|
|
|
|
#+ add it to the search path
|
|
|
|
TINWHISTLE_DIR=$LIB/tinwhistle/
|
|
|
|
|
|
|
|
# Options by this script
|
|
|
|
OPTIONS="-dno-strip-output-dir -dno-point-and-click"
|
|
|
|
|
|
|
|
# Process
|
|
|
|
PROCESS="lilypond -dinclude-settings=$STYLESHEET -I $TINWHISTLE_DIR $OPTIONS"
|
|
|
|
|
|
|
|
|
|
|
|
# Execute
|
|
|
|
lilypond-book -P"${PROCESS}" --output=tex --pdf book.lytex
|
|
|
|
|
|
|
|
# PDF
|
|
|
|
cd $DIR/tex
|
2018-02-14 14:25:21 +01:00
|
|
|
ln -s $DIR/tunebook.cls .
|
2018-02-14 01:34:54 +01:00
|
|
|
pdflatex book.tex
|
|
|
|
cd $DIR
|
|
|
|
cp $DIR/tex/book.pdf $DIR/book.pdf
|