]> git.donarmstrong.com Git - lilypond.git/blob - smart-autogen.sh
Merge branch 'master' into lilypond/translation
[lilypond.git] / smart-autogen.sh
1 #!/bin/sh
2
3 srcdir=${srcdir:-.}
4 set -ux
5
6 AUTOGEN_INPUT_CHECKSUM=`cat $srcdir/configure.in $srcdir/stepmake/aclocal.m4 | md5sum | cut -b 1-32`
7
8 CHECKSUM_FILE=autogen.checksum
9
10 if test `cat $CHECKSUM_FILE`"" = "$AUTOGEN_INPUT_CHECKSUM"; then
11   exit 0
12 fi
13
14 set -e
15 ${srcdir}/autogen.sh "$@"
16 echo -n $AUTOGEN_INPUT_CHECKSUM > $CHECKSUM_FILE 
17
18