X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fauxiliar%2Fupdate-with-convert-ly.sh;h=6092d83350207c1a89f34c69a5ea17a69b5f805c;hb=HEAD;hp=fd8aae4bae826f2aaff088a5ae58d3425aa17d12;hpb=cf469bc1da87d893f24ab0d1781f618278130a22;p=lilypond.git diff --git a/scripts/auxiliar/update-with-convert-ly.sh b/scripts/auxiliar/update-with-convert-ly.sh index fd8aae4bae..6092d83350 100755 --- a/scripts/auxiliar/update-with-convert-ly.sh +++ b/scripts/auxiliar/update-with-convert-ly.sh @@ -8,24 +8,22 @@ fi ### get the directories TOP_SRC_DIR=`pwd` -if [ -z $BUILD_DIR ]; then - BUILD_DIR=. +if [ -z $LILYPOND_BUILD_DIR ]; then + LILYPOND_BUILD_DIR=. fi ### make sure convert-ly is up-to-date -touch python/convertrules.py -touch scripts/convert-ly.py -cd $BUILD_DIR -make +cd $LILYPOND_BUILD_DIR +make python-modules cd $TOP_SRC_DIR ### update manuals find Documentation/ -path 'Documentation/snippets' -prune -o -name out -prune \ - -o -name out-www -prune -o -name '*.itely' -print \ - | xargs $BUILD_DIR/out/bin/convert-ly -e -d + -o -name 'out-*' -prune -o -name '*.itely' -print \ + | xargs $LILYPOND_BUILD_DIR/out/bin/convert-ly -e -d "$@" ### update .ly files # don't look in . otherwise it'll find stuff in build/ ! -find Documentation/ input/ ly/ -name out -prune -o -name out-www -prune \ +find Documentation/ input/ ly/ -name out -prune -o -name 'out-*' -prune \ -o \( -name '*.ly' -o -name '*.ily' \) -print \ - | xargs $BUILD_DIR/out/bin/convert-ly -e -d + | xargs $LILYPOND_BUILD_DIR/out/bin/convert-ly -e -d "$@"