mirror of
https://github.com/RsyncProject/rsync.git
synced 2025-12-23 23:28:17 -05:00
Since a non-cygwin gmake trips up the github cygwin action, let's just require that the user put a good "make" early on their path (a simple `ln -s `which gmake` ~/bin/make` with the right $PATH works fine).
46 lines
686 B
Bash
Executable File
46 lines
686 B
Bash
Executable File
#!/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
|