Allow basic connectivity check via rrsync
[rsync.git] / packaging / smart-make
blob3826432ecb936187b4cf34c4915977a64f4aac1c
1 #!/bin/sh
3 set -e
5 export LANG=C
7 branch=`packaging/prep-auto-dir`
8 if test x"$branch" = x; then
9 srcdir=.
10 else
11 cd build
12 srcdir=..
15 if test -f configure.sh; then
16 cp -p configure.sh configure.sh.old
17 else
18 touch configure.sh.old
21 if test -f .fetch; then
22 $srcdir/prepare-source fetch
23 else
24 $srcdir/prepare-source
27 if diff configure.sh configure.sh.old >/dev/null 2>&1; then
28 echo "configure.sh is unchanged."
29 rm configure.sh.old
30 else
31 echo "configure.sh has CHANGED."
32 if test -f config.status; then
33 ./config.status --recheck
34 else
35 $srcdir/configure
39 ./config.status
41 make all
43 if test x"$1" = x"check"; then
44 make check