blob: 2b079f5134a55920f3b126f71c8cd8dfcc041318 (
plain)
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
|
################################################################################
##
## Figure out CodeWarrior version
##
################################################################################
CodeWarrior_Linker_Version = ¶`mwlink68k -version | search /Runtime/ | streamedit -d -e "/([0-9.]*)¨1/ print ¨1"¶`
CodeWarrior_Linker_Pro2 = "2.0"
CodeWarrior_Linker_Pro4 = "2.2"
CodeWarrior_Version = `if ({CodeWarrior_Linker_Version} == {CodeWarrior_Linker_Pro2}); ¶
echo Pro2; ¶
else if ({CodeWarrior_Linker_Version} == {CodeWarrior_Linker_Pro4}); ¶
echo Pro4; ¶
end;`
CodeWarrior_IDE = "CodeWarrior "{CodeWarrior_Version}" IDE"
CodeWarrior_Projects = :mac:Libraries:Metrowerks:{CodeWarrior_Version}:
CodeWarrior_Project = "`Directory`mac:libraries:CodeWarrior Dependencies:{CodeWarrior_Version}.prj"
all Ä create-directories build-cw-projects build-makefile
################################################################################
##
## Creating makefile
##
################################################################################
build-makefile Ä
perl :mac:macfile_gen.pl
################################################################################
##
## Creating build directories
##
################################################################################
create-directories Ä
If Not "`Exists -d :bin`"
NewFolder :bin
End
If Not "`Exists -d :bin:PPC`"
NewFolder :bin:PPC
End
If Not "`Exists -d :bin:CFM-68K`"
NewFolder :bin:CFM-68K
End
################################################################################
##
## Build CodeWarrior projects
##
################################################################################
build-cw-projects Ä
(Echo "with timeout of 1200 seconds"; ¶
Echo "Tell application ¶"{CodeWarrior_IDE}¶""; ¶
Echo "Open ¶"{CodeWarrior_Project}¶" as alias"; ¶
Echo "Make Project"; ¶
Echo "end"; ¶
Echo "end") | Catenate | perl :mac:RunAppleScript.pl
|