2 # Either use autoconf and autoheader to create configure.sh and config.h.in
3 # or (optionally) fetch the latest development versions of generated files.
5 # Specify one action or more than one to provide a fall-back:
7 # build build the config files [the default w/no arg]
8 # fetch fetch the latest dev config files
9 # fetchgen fetch all the latest dev generated files
10 # fetchSRC fetch the latest dev source files [NON-GENERATED FILES]
12 # The script stops after the first successful action.
15 if test x
"$dir" = x
; then
19 if test "$dir" = '.'; then
20 branch
=`packaging/prep-auto-dir` ||
exit 1
21 if test x
"$branch" != x
; then
27 if test "$dir" != '.'; then
28 for lnk
in configure.ac
m4; do
29 if test ! -h $lnk; then
30 rm -f $lnk # Just in case
31 ln -s "$dir/$lnk" $lnk
34 for fn
in configure.sh config.h.
in aclocal.
m4; do
35 test ! -f $fn -a -f "$dir/$fn" && cp -p "$dir/$fn" $fn
43 for action
in "${@}"; do
46 make -f "$dir/prepare-source.mak"
49 if test "$action" = fetchgen
; then
54 $dir/rsync-ssl
-iipc --no-motd "rsync://download.samba.org/rsyncftp/generated-files/$match" .
/
55 test $?
!= 0 && continue
56 sleep 1 # The following files need to be newer than aclocal.m4
57 touch configure.sh config.h.
in
60 .
/rsync-ssl
-iipr --no-motd --exclude=/.git
/ rsync
://download.samba.org
/ftp
/pub
/unpacked
/rsync
/ .
63 echo "Unknown action: $action"