summaryrefslogtreecommitdiff
path: root/smart-autogen.sh
blob: 92ef928ca053ff68a2571c5a617b31c9cb534411 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

srcdir=${srcdir:-.}
set -ux

AUTOGEN_INPUT_CHECKSUM=`cat $srcdir/configure.in $srcdir/stepmake/aclocal.m4 | md5sum | cut -b 1-32`

CHECKSUM_FILE=autogen.checksum

if test `cat $CHECKSUM_FILE`"" = "$AUTOGEN_INPUT_CHECKSUM"; then
  exit 0
fi

set -e
${srcdir}/autogen.sh "$@"
echo -n $AUTOGEN_INPUT_CHECKSUM > $CHECKSUM_FILE