Commit | Line | Data |
---|---|---|
20926fbd | 1 | #!/bin/sh |
85cdbb6b WD |
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). | |
20926fbd | 5 | dir=`dirname $0` |
5dcd9a2b | 6 | if test x"$dir" != x -a x"$dir" != x.; then |
77b013af | 7 | cd "$dir" |
20926fbd | 8 | fi |
85cdbb6b WD |
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" . | |
8f42da0b WD |
18 | elif test x"$1" = x"fetchall"; then |
19 | rsync -pvz rsync://rsync.samba.org/rsyncftp/generated-files/'*' . | |
85cdbb6b WD |
20 | else |
21 | exit 1 | |
22 | fi |