Moved the dir_count increment into an even better spot and make sure that
[rsync/rsync.git] / prepare-source
... / ...
CommitLineData
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).
5dir=`dirname $0`
6if test x"$dir" != x -a x"$dir" != x.; then
7 cd "$dir"
8fi
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" .
18else
19 exit 1
20fi