]> git.ipfire.org Git - thirdparty/rsync.git/blame - configure
More tweaks for Actions.
[thirdparty/rsync.git] / configure
CommitLineData
2909586e
WD
1#!/bin/sh -e
2# This configure script ensures that the configure.sh script exists, and
3# if not, it tries to fetch rsync's generated files or build them. We
4# then transfer control to the configure.sh script to do the real work.
5
6dir=`dirname $0`
7039d146
WD
7if test x"$dir" = x; then
8 dir=.
9fi
2909586e 10
7039d146
WD
11if test "$dir" = '.'; then
12 branch=`packaging/prep-auto-dir` || exit 1
13 if test x"$branch" != x; then
14 cd build || exit 1
15 dir=..
16 fi
ec3c9f2f
WD
17fi
18
19if test ! -f configure.sh; then
20 if ! "$dir/prepare-source" build; then
3005a12b 21 echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2
ec3c9f2f 22 rm -f configure.sh
3005a12b 23 exit 1
2909586e 24 fi
2909586e
WD
25fi
26
ec3c9f2f 27exec ./configure.sh --srcdir="$dir" "${@}"