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
-a x
"$dir" != x.
; then
23 for action
in "${@}"; do
26 make -f prepare-source.mak
29 if perl
--version >/dev
/null
2>/dev
/null
; then
34 rsync
-pvz rsync
://rsync.samba.org
/rsyncftp
/generated-files
/"$files" .
37 rsync
-pvz rsync
://rsync.samba.org
/rsyncftp
/generated-files
/'*' .
40 rsync
-pvrz --exclude=/.git
/ rsync
://rsync.samba.org
/ftp
/pub
/unpacked
/rsync
/ .
43 echo "Unknown action: $action"