lilypond-1.3.87
[lilypond.git] / buildscripts / lilypond.sh
blobe3d8e70b632c13a37048a340cb36507fe00c1e4b
1 #!/bin/sh
2 # via scm wrapper
4 foo=lilypond.$$
5 trap "rm $foo" 1 2 15
6 touch lilypond.$$
8 $LILYPONDPREFIX/lily/out/lilypond -f scm $*
9 scm=`find . -maxdepth 1 -cnewer $foo -and -name '*.scm'`
10 for i in $scm; do
11 dir=`dirname $i`
12 base=`basename $i .scm`
13 file=$dir/$base.tex
14 rm -f $file
15 guile -s $i > $file
16 done
17 rm -f $scm
18 rm $foo