2018-01-28 15:51:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Wrapper script for pipeband scores
|
|
|
|
#
|
|
|
|
# It uses (standard) commandline options of lilypond
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2021-11-02 23:24:46 +01:00
|
|
|
LIB="$(realpath "${DIR}/../../lib")"
|
2018-01-28 15:51:37 +01:00
|
|
|
|
|
|
|
# Change the Stylesheet variable if you want different 'settings'
|
|
|
|
# It is handy to include ./defs.ily since it defines some text variables,
|
|
|
|
# it will complain otherwise about not finding variables
|
|
|
|
#STYLESHEET=$DIR/defs.ily
|
|
|
|
STYLESHEET="$LIB/styles/pipeband.sly"
|
|
|
|
|
|
|
|
# Add lilydrum to the search path
|
|
|
|
LILYDRUM="$LIB/lilydrum/"
|
|
|
|
# Add custom bagpipe.ly to search path
|
|
|
|
BAGPIPELY="$LIB/bagpipe.ly/"
|
|
|
|
|
2019-01-03 23:34:05 +01:00
|
|
|
# Options by this script
|
2018-01-28 15:51:37 +01:00
|
|
|
# see http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage#advanced-command-line-options-for-lilypond
|
|
|
|
OPTIONS="-dno-strip-output-dir -dno-point-and-click -dpaper-size=\"a4landscape\""
|
|
|
|
|
|
|
|
# Execute
|
2019-08-13 14:50:14 +02:00
|
|
|
lilypond -dinclude-settings=$STYLESHEET -I $LILYDRUM -I $BAGPIPELY $OPTIONS -dpreview "$@"
|