-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·68 lines (58 loc) · 1.92 KB
/
bootstrap.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
#
#
# Copyright (C) 2000-2012 The Xastir Group
#
#
# This simple routine will run autostuff in the appropriate
# order to generate the needed configure/makefiles
#
echo " 7) Removing autom4te.cache directory..."
rm -rf autom4te.cache
echo " 6) Running aclocal..."
aclocal
echo " 5) Running autoheader..."
autoheader
echo " 4) Running autoconf..."
autoconf
# Cygwin needs these parameters to be separate.
echo " 3) Running automake..."
automake -a -c
# Automake-1.9 on SuSE 10 doesn't copy over "mkinstalldirs" if
# missing. Check whether it is missing and copy it over ourselves
# if so.
if test -x "mkinstalldirs"
then
echo " 2) Checking for 'mkinstalldirs'... Found!"
else
echo " 2) Checking for 'mkinstalldirs'... Not Found"
echo " Attempting to copy it from system directories'"
(cp /usr/local/share/automake*/mkinstalldirs . 2>/dev/null)
# Did we succeed?
if [ $? ]
then
# Failed the copy above, try in another directory.
(cp /usr/share/automake*/mkinstalldirs . 2>/dev/null)
fi
# Check whether we have the file now in our current directory and
# that it is executable.
if test -x "mkinstalldirs"
then
echo " Checking for 'mkinstalldirs'... Found!"
else
echo "***ERROR: Couldn't copy the file***"
fi
fi
# Generate derived language files
echo -n " 1) Generating derived language files"
(cd config; ../scripts/langPigLatin.pl -split <language-English.sys >language-PigLatin.sys)
echo -n "."
(cd config; ../scripts/langElmerFudd.pl -split <language-English.sys >language-ElmerFudd.sys)
echo -n "."
(cd config; ../scripts/langMuppetsChef.pl -split <language-English.sys >language-MuppetsChef.sys)
echo -n "."
(cd config; ../scripts/langOldeEnglish.pl -split <language-English.sys >language-OldeEnglish.sys)
echo -n "."
(cd config; ../scripts/langPirateEnglish.pl -split <language-English.sys >language-PirateEnglish.sys)
echo "."
echo "Bootstrap complete."