]> git.donarmstrong.com Git - lilypond.git/blob - scripts/auxiliar/update-with-convert-ly.sh
Issue 3826: Stop scripts/auxiliar/update-with-convert-ly.sh from doing a full make
[lilypond.git] / scripts / auxiliar / update-with-convert-ly.sh
1 #!/usr/bin/env bash
2
3 ### are we in the top source dir?
4 if [ ! -e scripts/convert-ly.py ]; then
5   echo "Must run from top source directory"
6   exit 1
7 fi
8
9 ### get the directories
10 TOP_SRC_DIR=`pwd`
11 if [ -z $BUILD_DIR ]; then
12   BUILD_DIR=.
13 fi
14
15 ### make sure convert-ly is up-to-date
16 cd $BUILD_DIR
17 make pythonmodules
18 cd $TOP_SRC_DIR
19
20 ### update manuals
21 find Documentation/ -path 'Documentation/snippets' -prune -o -name out -prune \
22   -o -name 'out-*' -prune -o -name '*.itely' -print \
23   | xargs $BUILD_DIR/out/bin/convert-ly -e -d
24
25 ### update .ly files
26 # don't look in . otherwise it'll find stuff in build/ !
27 find Documentation/ input/ ly/ -name out -prune -o -name 'out-*' -prune \
28   -o \( -name '*.ly' -o -name '*.ily' \) -print \
29   | xargs $BUILD_DIR/out/bin/convert-ly -e -d