]> git.donarmstrong.com Git - lilypond.git/blob - smart-autogen.sh
Add '-dcrop' option to ps and svg backends
[lilypond.git] / smart-autogen.sh
1 #!/bin/sh
2
3 srcdir=${srcdir:-.}
4 set -ux
5
6 AUTOGEN_INPUT_CHECKSUM=`cat $srcdir/configure.ac $srcdir/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 +ux; echo Invoking autogen.sh...; ${srcdir}/autogen.sh "$@" ) || exit 1
15 printf "%s" $AUTOGEN_INPUT_CHECKSUM > $CHECKSUM_FILE