]> git.donarmstrong.com Git - lilypond.git/blobdiff - autogen.sh
Bugfix: copy aclocal.m4, autogen.sh also if
[lilypond.git] / autogen.sh
index 36d6b4939ff9eb10f10577314e3449466910a05a..b5406534030d42e4c639dc28a0295cebdb58d114 100755 (executable)
@@ -3,8 +3,14 @@
 
 srcdir=`dirname $0`
 
-if [ stepmake/autogen.sh -nt autogen.sh ]; then
-    echo "stepmake/autogen.sh is newer. Copying file." 
+
+if [ ! -f aclocal.m4 -o stepmake/aclocal.m4 -nt aclocal.m4 ]; then
+    echo "stepmake/aclocal.m4 is newer.  Copying file." 
+    cp -f stepmake/aclocal.m4 aclocal.m4
+fi
+
+if [ ! -f autogen.sh -o stepmake/autogen.sh -nt autogen.sh ]; then
+    echo "stepmake/autogen.sh is newer.  Copying file." 
     cp -f stepmake/autogen.sh autogen.sh
     exec ./autogen.sh
 fi