]> git.donarmstrong.com Git - lilypond.git/blobdiff - lexer-gcc-3.1.sh
(Hiding staffs): rename node.
[lilypond.git] / lexer-gcc-3.1.sh
index 944497fdf9f8725323aa1feee97d61ae2e62499a..c9b8a389d64bb86040c8857a37b12f37f541f7f3 100755 (executable)
@@ -4,6 +4,10 @@
 
 set -e
 
+FLEXLEXER=OK
+
+if [ -z "$FLEXLEXER" ]; then
+
 includes="$HOME/usr/include /usr/local/include /usr/include"
 
 for i in $includes; do
@@ -24,6 +28,7 @@ EOF
     exit 1
 fi
 
+fi # flexlexer
 
 if [ -n "$CONF" ]; then
     CONFIGSUFFIX=-$CONF
@@ -33,6 +38,8 @@ if [ -n "$CONF" ]; then
 fi    
 outdir=out$CONFIGSUFFIX
 
+if [ -z "$FLEXLEXER" ]; then
+
 echo -n "Copying and fixing $file... "
 mkdir -p lily/$outdir
 rm -f lily/$outdir/FlexLexer.h
@@ -42,11 +49,11 @@ sed -e 's/iostream.h/iostream/' \
     $file > lily/$outdir/FlexLexer.h
 echo "done"
 
+fi # flexlexer
 
 if [ -f GNUmakefile ]; then
-    echo -n "Generating and fixing $file... "
-
     file=lily/$outdir/lexer.cc
+    echo -n "Generating and fixing $file... "
     rm -f $file
     make conf=$CONF -C lily $outdir/lexer.cc > /dev/null 2>&1 || true