Annotation of embedaddon/rsync/packaging/smart-make, revision 1.1.1.1
1.1 misho 1: #!/bin/sh
2:
3: set -e
4:
5: export LANG=C
6:
7: make=`which gmake 2>/dev/null` || make=`which make 2>/dev/null`
8:
9: branch=`packaging/prep-auto-dir`
10: if test x"$branch" = x; then
11: srcdir=.
12: else
13: cd build
14: srcdir=..
15: fi
16:
17: if test -f configure.sh; then
18: cp -p configure.sh configure.sh.old
19: else
20: touch configure.sh.old
21: fi
22:
23: if test -f .fetch; then
24: $srcdir/prepare-source fetch
25: else
26: $srcdir/prepare-source
27: fi
28:
29: if diff configure.sh configure.sh.old >/dev/null 2>&1; then
30: echo "configure.sh is unchanged."
31: rm configure.sh.old
32: else
33: echo "configure.sh has CHANGED."
34: if test -f config.status; then
35: ./config.status --recheck
36: else
37: $srcdir/configure
38: fi
39: fi
40:
41: ./config.status
42:
43: $make all
44:
45: if test x"$1" = x"check"; then
46: $make check
47: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>