File: configure

package info (click to toggle)
rsync 3.2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,612 kB
  • sloc: ansic: 42,277; sh: 5,922; perl: 930; python: 825; asm: 665; makefile: 349; cpp: 289; awk: 191
file content (27 lines) | stat: -rwxr-xr-x 665 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh -e
# This configure script ensures that the configure.sh script exists, and
# if not, it tries to fetch rsync's generated files or build them.  We
# then transfer control to the configure.sh script to do the real work.

dir=`dirname $0`
if test x"$dir" = x; then
    dir=.
fi

if test "$dir" = '.'; then
    branch=`packaging/prep-auto-dir` || exit 1
    if test x"$branch" != x; then
	cd build || exit 1
	dir=..
    fi
fi

if test ! -f configure.sh; then
    if ! "$dir/prepare-source" build; then
	echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2
	rm -f configure.sh
	exit 1
    fi
fi

exec ./configure.sh --srcdir="$dir" "${@}"