From b193d41c1244d796d3cbb7c31bd37676250c040a Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Thu, 2 Feb 2023 22:34:36 +0100 Subject: [PATCH] build: use landscape and generate previews --- build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build b/build index f5aaf4a..bb8e0ba 100755 --- a/build +++ b/build @@ -4,7 +4,9 @@ # It uses (standard) commandline options of lilypond DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -LIB=$DIR/../lib +LIB="$(realpath "${DIR}/../lib")" + +# Change the Stylesheet variable if you want different 'settings' STYLESHEET=$LIB/styles/tinwhistle.sly # In case tinwhistle.ily is included in file @@ -12,7 +14,8 @@ STYLESHEET=$LIB/styles/tinwhistle.sly TINWHISTLE_DIR=$LIB/tinwhistle/ # Options by this script -OPTIONS="-dno-strip-output-dir -dno-point-and-click" +# 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\" -dpreview" # Execute lilypond -dinclude-settings=$STYLESHEET -I $TINWHISTLE_DIR $OPTIONS $@