build_boot.sh 2.23 KB
Newer Older
1
set -e
2
mkdir -p boot
3
4
cp -r -p clean boot/clean
(cd boot/clean; make)
5
6
mv boot/clean boot/clean0
cp -r -p clean boot/clean
7
8
cp ./clean-classic/linux-x86/txt/README.boot boot/clean/README
./clean-classic/linux-x86/remove_bin.sh
9
for m in StdArray StdEnv StdOverloaded _SystemArray StdOverloadedList \
10
	_SystemEnum StdFunc StdFunctions _SystemEnumStrict StdCharList StdStrictLists \
11
	_SystemStrictLists StdClass StdList StdDebug StdTuple StdEnum \
12
	StdOrdList StdGeneric StdMaybe;
13
14
15
16
do cp -p "boot/clean0/lib/StdEnv/Clean System Files/"$m.abc "boot/clean/StdEnv/Clean System Files/"$m.abc;
done

mkdir -p boot/clean/src
17
cp ./clean-classic/linux-x86/txt/Makefile_boot boot/clean/src/Makefile
18
cd boot/clean/src
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
../../../clean-classic/linux-x86/git_clone.sh clean-compiler-and-rts/run-time-system.git RuntimeSystem
rm -Rf RuntimeSystem/.git
../../../clean-classic/linux-x86/git_clone.sh clean-compiler-and-rts/code-generator.git CodeGenerator
rm -Rf CodeGenerator/.git
../../../clean-classic/linux-x86/git_clone.sh clean-and-itasks/clm.git clm
rm -Rf clm/.git
../../../clean-classic/linux-x86/svn_export.sh clean-tools/trunk/htoclean tools/htoclean
../../../clean-classic/linux-x86/git_clone_no_checkout_depth_1.sh clean-and-itasks/clean-libraries.git clean-libraries
(cd clean-libraries; git checkout master Libraries/ArgEnvUnix Libraries/StdLib Libraries/Directory)
rm -Rf clean-libraries/.git
(cp "tools/htoclean/Clean.h" "clean-libraries/Libraries/Directory/Clean System Files Unix/Clean.h"; cd clean-libraries/Libraries/Directory; mkdir "Clean System Files"; gcc -c -O "Clean System Files Unix/cDirectory.c" -o "Clean System Files/cDirectory.o")
../../../clean-classic/linux-x86/git_clone.sh clean-compiler-and-rts/compiler.git compiler
rm -Rf compiler/.git
../../../clean-classic/linux-x86/svn_export.sh clean-tools/trunk/elf_linker elf_linker
../../../clean-classic/linux-x86/git_clone.sh clean-and-itasks/clean-ide.git clean-ide
rm -Rf clean-ide/.git
35
36
chmod +x RuntimeSystem/remove_tmp_files_linux
cd ../../..
37
38
for p in elf_linker elf_linker/ia32 compiler/main/Unix \
	clean-libraries/Libraries/ArgEnvUnix compiler/frontend compiler/backend compiler/main;
39
40
41
do  mkdir -p "boot/clean/src/$p/Clean System Files";
    cp "$p/Clean System Files/"*.abc "boot/clean/src/$p/Clean System Files";
done