| 1 | #!/bin/sh |
| 2 | # Use autoconf and autoheader to create configure.sh and config.h.in. |
| 3 | # If unsuccessful and the "fetch" option was provided, grab the latest |
| 4 | # development versions of these files (only useful with a dev checkout). |
| 5 | dir=`dirname $0` |
| 6 | if test x"$dir" != x -a x"$dir" != x.; then |
| 7 | cd "$dir" |
| 8 | fi |
| 9 | if make -f prepare-source.mak; then |
| 10 | : |
| 11 | elif test x"$1" = x"fetch"; then |
| 12 | if perl --version >/dev/null 2>/dev/null; then |
| 13 | files='c*' |
| 14 | else |
| 15 | files='[cp]*' |
| 16 | fi |
| 17 | rsync -pvz rsync://rsync.samba.org/rsyncftp/generated-files/"$files" . |
| 18 | else |
| 19 | exit 1 |
| 20 | fi |