X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fauxiliar%2Fdoc-section.sh;h=963476840a50f9f999c35a7bb9e27ffdf3cd07c6;hb=025a91a5c119234c5849b790d9bfe20e6ffe2a26;hp=2c6b557a9a6dee43ce3cd134ac53dd3f71aabf06;hpb=b04051d73288a536456d3577b31042c3e5e44e96;p=lilypond.git diff --git a/scripts/auxiliar/doc-section.sh b/scripts/auxiliar/doc-section.sh index 2c6b557a9a..963476840a 100755 --- a/scripts/auxiliar/doc-section.sh +++ b/scripts/auxiliar/doc-section.sh @@ -37,14 +37,15 @@ usage () { cat <&2 -Usage: $0 MANUAL SECTION +Usage: $0 MANUAL SECTION e.g. $0 notation rhythms + EOF exit "$1" } -if [ "$1" == '-h' ] || [ "$1" == '--help' ]; then +if [ "$1" = '-h' ] || [ "$1" = '--help' ]; then usage 0 fi @@ -59,6 +60,13 @@ else echo "\$LILYPOND_GIT was not set; auto-detected source tree at $LILYPOND_GIT" fi +if [ -n "$BROWSER" ]; then + echo "Using browser from \$BROWSER: $BROWSER" +else + echo "\$BROWSER not set; using firefox as default" + BROWSER="firefox" +fi + if test ! -e "$LILYPOND_GIT/DEDICATION"; then echo "Error: $LILYPOND_GIT did not look like a LilyPond source tree; aborting." >&2 exit 1 @@ -105,6 +113,7 @@ fi cp "$LILYPOND_GIT/Documentation/common-macros.itexi" "$OUTPUT_DIR/common-macros.itexi" cp "$LILYPOND_GIT/Documentation/macros.itexi" "$DOC_DIR/macros.itexi" cp "$DOC_DIR/version.itexi" "$OUTPUT_DIR/version.itexi" +cp -r "$LILYPOND_GIT/Documentation/pictures/" "$OUTPUT_DIR/out/pictures" if test -e "$OUTPUT_DIR/$SECTION.html"; then rm "$OUTPUT_DIR/$SECTION.html" @@ -145,19 +154,19 @@ if test -f "$OUTPUT_DIR/out/$SECTION.texi"; then "$OUTPUT_DIR/$SECTION.texi" fi -cat <