-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap
executable file
·64 lines (58 loc) · 2.08 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
# generate include Makefiles
# C source includes
cd src/supportc
echo libsupportc_la_SOURCES = `for i in *.[ch] ; do echo -n $i "" ; done` > Makefile.c_sources
cd ../..
cd src/capi
echo libcapi_la_SOURCES = `for i in *.[ch] ; do echo -n $i "" ; done` > Makefile.c_sources
cd ../..
cd src/papi
echo libpapi_la_SOURCES = `for i in *.[ch] ; do echo -n $i "" ; done` > Makefile.c_sources
cd ../..
cd src/sapi
echo libsapi_la_SOURCES = `for i in *.[ch] ; do echo -n $i "" ; done` > Makefile.c_sources
cd ../..
cd src/wapi
echo wapi_SRC = `for i in *.[ch] ; do echo -n $i "" ; done` > Makefile.c_sources
cd ../..
# Eiffel source includes
cd test_suite
geant clean
cd ..
cd src
geant clobber
geant install
echo ESRC = \\ > Makefile.e_sources
find . -regex ".*\.[g]?e$" -exec echo -e "\t"{} "\\" >> Makefile.e_sources \;
echo "\t./abstract/abstract_child_process.e" >> Makefile.e_sources
cd ..
# Eiffel test_suite includes
cd test_suite
echo TEST_SRC = `find . -name "*.e" -exec echo -n {} " " \;` > Makefile.sources
echo TEST_ANT = `find . -name build.eant -exec echo -n {} " " \;` >> Makefile.sources
echo TEST_XACE = `find . -name system.xace -exec echo -n {} " " \;` >> Makefile.sources
echo TEST_GETEST = `find . -name getest.cfg -exec echo -n {} " " \;` >> Makefile.sources
echo TEST_DIR_STRUCT = `find abstract/file_system -regextype posix-extended -name "dir*" -or -regex '.*/dir[^/]+/file.*' -exec echo -n {} " " \;` >> Makefile.sources
cd ..
# Eiffel doc includes
cd doc
make -f Makefile.maintainer
cd ..
# run when configure.in or Makefile.am changes or so
# if ltmain.sh does not exist:
# libtoolize and move ltmain.sh, remove config.sub and config.guess
# Also for updating config.sub and config.guess, run libtoolize
if [ ! -f config/ltmain.sh ]
then
libtoolize
fi
# Note, the -I config is to pickup my config/eiffel.m4 file.
autoreconf -i -I config
autoheader
automake --foreign --add-missing --copy
autoconf
# 2012-03-09: bootstrapping is pretty hard now. Probably my code has become
# quite obsolete.
# Did "autoreconf -i" a few times, and ./configures before things
# started to compile again.