-
Notifications
You must be signed in to change notification settings - Fork 52
/
rebuild
executable file
·31 lines (31 loc) · 928 Bytes
/
rebuild
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
#!/bin/bash
# DO NOT EXECUTE THIS SCRIPT unless you have the automake tools installed, specifically
# the autoreconf tool that is used below. See the README file for instructions on
# compiling the CoCo virtual machine
if [ ! "`which autoreconf`" ]
then
echo "The autoreconf program could not be found."
echo "Install the correct package and then try to rebuild again."
autoreconf
exit
fi
rm -Rf autom4te.cache
rm config.log
rm config.status
rm configure
rm depcomp
rm install-sh
rm missing
rm Makefile
rm Makefile.in
rm aclocal.m4
rm *.o
rm *~
echo "bin_PROGRAMS = coco" > Makefile.am
echo "coco_SOURCES =" *.cpp >> Makefile.am
echo "AC_INIT([coco], [1.0], [[email protected]])" > configure.ac
echo "AM_INIT_AUTOMAKE([-Wall -Werror foreign])" >> configure.ac
echo "AC_PROG_CXX" >> configure.ac
echo "AC_CONFIG_FILES([Makefile])" >> configure.ac
echo "AC_OUTPUT" >> configure.ac
autoreconf --force --install