]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/auxiliar/update-with-convert-ly.sh
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scripts / auxiliar / update-with-convert-ly.sh
index b124d5ff32c6bc478f2e4d20acffda97a6158275..6092d83350207c1a89f34c69a5ea17a69b5f805c 100755 (executable)
@@ -8,20 +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 \
-  , -name '*.itely' | xargs $BUILD_DIR/out/bin/convert-ly -e -d
+find Documentation/ -path 'Documentation/snippets' -prune -o -name out -prune \
+  -o -name 'out-*' -prune -o -name '*.itely' -print \
+  | xargs $LILYPOND_BUILD_DIR/out/bin/convert-ly -e -d "$@"
 
 ### update .ly files
-find . -name '*.ly' | xargs $BUILD_DIR/out/bin/convert-ly -e -d
+# don't look in . otherwise it'll find stuff in build/ !
+find Documentation/ input/ ly/ -name out -prune -o -name 'out-*' -prune \
+  -o \( -name '*.ly' -o -name '*.ily' \) -print \
+  | xargs $LILYPOND_BUILD_DIR/out/bin/convert-ly -e -d "$@"