Fixed a FALL THROUGH comment.
[rsync/rsync.git] / prepare-source
CommitLineData
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 5dir=`dirname $0`
5dcd9a2b 6if test x"$dir" != x -a x"$dir" != x.; then
77b013af 7 cd "$dir"
20926fbd 8fi
85cdbb6b
WD
9if make -f prepare-source.mak; then
10 :
11elif 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
18elif test x"$1" = x"fetchall"; then
19 rsync -pvz rsync://rsync.samba.org/rsyncftp/generated-files/'*' .
85cdbb6b
WD
20else
21 exit 1
22fi