X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autogen.sh;h=b5406534030d42e4c639dc28a0295cebdb58d114;hb=5e8059cd76db864f08022b7cf05b3a808eefd267;hp=ea9bb388ceae2fdc44d3d81689c4858317c228d4;hpb=9e042e662281d7361e6be85068366c8911512c4e;p=lilypond.git diff --git a/autogen.sh b/autogen.sh index ea9bb388ce..b540653403 100755 --- a/autogen.sh +++ b/autogen.sh @@ -4,13 +4,13 @@ srcdir=`dirname $0` -if [ stepmake/aclocal.m4 -nt aclocal.m4 ]; then - echo "stepmake/aclocal.m4 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 [ stepmake/autogen.sh -nt autogen.sh ]; then - echo "stepmake/autogen.sh is newer. Copying file." +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