summaryrefslogtreecommitdiffstats
path: root/packaging/smart-make
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:14:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:14:31 +0000
commit2d5707c7479eacb3b1ad98e01b53f56a88f8fb78 (patch)
treed9c334e83692851c02e3e1b8e65570c97bc82481 /packaging/smart-make
parentInitial commit. (diff)
downloadrsync-2d5707c7479eacb3b1ad98e01b53f56a88f8fb78.tar.xz
rsync-2d5707c7479eacb3b1ad98e01b53f56a88f8fb78.zip
Adding upstream version 3.2.7.upstream/3.2.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/smart-make')
-rwxr-xr-xpackaging/smart-make45
1 files changed, 45 insertions, 0 deletions
diff --git a/packaging/smart-make b/packaging/smart-make
new file mode 100755
index 0000000..3826432
--- /dev/null
+++ b/packaging/smart-make
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+set -e
+
+export LANG=C
+
+branch=`packaging/prep-auto-dir`
+if test x"$branch" = x; then
+ srcdir=.
+else
+ cd build
+ srcdir=..
+fi
+
+if test -f configure.sh; then
+ cp -p configure.sh configure.sh.old
+else
+ touch configure.sh.old
+fi
+
+if test -f .fetch; then
+ $srcdir/prepare-source fetch
+else
+ $srcdir/prepare-source
+fi
+
+if diff configure.sh configure.sh.old >/dev/null 2>&1; then
+ echo "configure.sh is unchanged."
+ rm configure.sh.old
+else
+ echo "configure.sh has CHANGED."
+ if test -f config.status; then
+ ./config.status --recheck
+ else
+ $srcdir/configure
+ fi
+fi
+
+./config.status
+
+make all
+
+if test x"$1" = x"check"; then
+ make check
+fi