When fetching gen files, make sure aclocal.m4 is older than configure files.

This commit is contained in:
Wayne Davison committed 2020-06-20 18:46:16 -07:00
1 parent 1629b803cb
commit c5d502dc5f
1 file changed
+6 -4
+6 -4
View File
@@ -25,15 +25,17 @@ for action in "${@}"; do
build|make)
(cd $dir && make -f prepare-source.mak)
;;
fetch)
fetch|fetchgen)
$dir/rsync-ssl -iip --no-motd rsync://download.samba.org/rsyncftp/generated-files/'[ca]*' $dir
if ! perl --version >/dev/null 2>/dev/null; then
if test "$action" = fetchgen; then
$dir/rsync-ssl -iip --no-motd rsync://download.samba.org/rsyncftp/generated-files/'[^ca]*' .
elif ! perl --version >/dev/null 2>/dev/null; then
$dir/rsync-ssl -iip --no-motd rsync://download.samba.org/rsyncftp/generated-files/'p*' .
fi
sleep 1 # The following files need to be newer than aclocal.m4
touch configure.sh config.h.in
;;
fetchgen)
$dir/rsync-ssl -iip --no-motd rsync://download.samba.org/rsyncftp/generated-files/'[ca]*' $dir
$dir/rsync-ssl -iip --no-motd rsync://download.samba.org/rsyncftp/generated-files/'[^ca]*' .
;;
fetchSRC)
./rsync-ssl -iipr --no-motd --exclude=/.git/ rsync://download.samba.org/ftp/pub/unpacked/rsync/ .