-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathb.sh
59 lines (58 loc) · 1.34 KB
/
b.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
#!/bin/bash
set -e
#
#
function cmd {
/mnt/c/Windows/System32/cmd.exe /c $*
}
#
# cp ../lin/Host.Mod .
# cp Link.PE.exe Link.ELF.exe
# /mnt/c/Windows/System32/cmd.exe /c "ORP.Compile Host.Mod/s ~"
# /mnt/c/Windows/System32/cmd.exe /c "Link.ELF Host ~"
# ./Host fred
#
cd ~/projects/oberon/osys
rm -rf buildlin
mkdir buildlin
cd buildlin
#cp ../common/*.Mod .
cmd copy '..\common\*.Mod >NUL'
cp ../lin/*.Mod .
cp ../knowngood/*.exe .
#cp ../build/*.exe .
mv Link.PE.exe Link.ELF.exe
#
# Build Linux compiler and linker using Win compiler and linker
#
cmd ORP.Compile Host.Mod/s Kernel.Mod/s Files.Mod/s Modules.Mod/s
cmd ORP.Compile Fonts.Mod/s Texts.Mod/s Link.Mod/s ORS.Mod/s
cmd ORP.Compile ORB.Mod/s X64.Mod/s Listing.Mod/s ORG.Mod/s ORP.Mod/s
cmd Link.ELF ORP.Compile Link
mv Link Link.ELF
#
#
# Rebuild using Linux compiler
#
#
./ORP.Compile Host.Mod/s Kernel.Mod/s Files.Mod/s Modules.Mod/s
./ORP.Compile Fonts.Mod/s Texts.Mod/s Link.Mod/s ORS.Mod/s
./ORP.Compile ORB.Mod/s X64.Mod/s Listing.Mod/s ORG.Mod/s ORP.Mod/s
./Link.ELF ORP.Compile Link
mv Link Link.ELF
#
#
# Build Oberon system
#
#
./ORP.Compile FileDir.Mod/s Gui.Mod/s Input.Mod/s Display.Mod/s
./ORP.Compile Viewers.Mod/s Oberon.Mod/s MenuViewers.Mod/s
./ORP.Compile TextFrames.Mod/s Edit.Mod/s System.Mod/s
./Link.ELF Oberon+System+ORP+Link
#
#
# Run Oberon system
#
#
cp ../*.Tool ../*.Fnt .
./Oberon