-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbootstrap
executable file
·48 lines (32 loc) · 869 Bytes
/
bootstrap
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/sh
if test x"$1" != x ; then
psrchive_cmd=$1
else
psrchive_cmd=psrchive
fi
psrchive=`which $psrchive_cmd 2> /dev/null`
echo "Using $psrchive"
if test -z $psrchive; then
echo
echo "PSRCHIVE installation not found."
echo "If installed, please ensure that psrchive executable is in PATH"
echo "If not installed, please see http://psrchive.sourceforge.net"
echo
exit -1
fi
echo "Copying autoconf and automake tools from PSRCHIVE ..."
cp `$psrchive --aclocal`/* config/
sh config/formats.sh
echo "Running the GNU autotools. Please be patient ..."
if autoreconf --install --force; then
echo
echo "Bootstrap complete. You can now run the configure script."
echo
exit 0
else
echo
echo "An error occured while running the GNU autotools."
echo "Please see http://psrchive.sourceforge.net/third/autotools"
echo
exit -1
fi