staff-symbol-referencer.cc: Junk redundant functions.
[lilypond.git] / smart-configure.sh
blobf82c0857451709998bd7661a2598c478f23737fa
1 #!/bin/sh
3 srcdir=${srcdir:-.}
4 set -ux
6 MAKEFILE_MD5=`find $srcdir -name GNUmakefile | grep -v '^./GNUmakefile$' | sort | md5sum | cut -b 1-32`
7 CONFIGURE_INPUT_MD5=`cat $srcdir/config.make.in $srcdir/config.hh.in $srcdir/GNUmakefile.in | md5sum | cut -b 1-32`
8 CONFIGURE_OPTIONS_MD5=`echo "$@" | tr ' ' '\n' | sed 's/ */ /g' | grep '.' | sort -u | md5sum | cut -b 1-32`
10 CONFIGURE_CHECKSUM_FILE=configure.checksum
11 CONFIGURE_CHECKSUM="$MAKEFILE_MD5$CONFIGURE_INPUT_MD5$CONFIGURE_OPTIONS_MD5"
13 if test `cat $CONFIGURE_CHECKSUM_FILE` = "$CONFIGURE_CHECKSUM" ; then
14 exit 0
17 set -e
18 $srcdir/configure "$@"
19 echo -n $CONFIGURE_CHECKSUM > $CONFIGURE_CHECKSUM_FILE