File: MacBuildWm5.sh

package info (click to toggle)
libwildmagic 5.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 89,572 kB
  • ctags: 26,264
  • sloc: cpp: 210,924; csh: 637; sh: 95; makefile: 36
file content (115 lines) | stat: -rw-r--r-- 2,776 bytes parent folder | download
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/tcsh

if ("$1" == "") then
    echo "Usage: $0 cfg opr"
    echo "cfg in {DebugStatic,ReleaseStatic,DebugDynamic,ReleaseDynamic}"
    echo "opr in {build,clean}"
    exit
endif

set libTarget = ''
set appTarget = ''

if ("$1" == "DebugStatic") then
    set libTarget =  'Debug Static'
    set appTarget = 'Glut Debug Static'
else if ("$1" == "ReleaseStatic") then
    set libTarget = 'Release Static'
    set appTarget = 'Glut Release Static'
else if ("$1" == "DebugDynamic") then
    set libTarget = 'Debug Dynamic'
    set appTarget = 'Glut Debug Dynamic'
else if ("$1" == "ReleaseDynamic") then
    set libTarget = 'Release Dynamic'
    set appTarget = 'Glut Release Dynamic'
else
    echo "Usage: $0 cfg opr"
    echo "cfg in {DebugStatic,ReleaseStatic,DebugDynamic,ReleaseDynamic}"
    echo "opr in {build,clean}"
    exit
endif

set opr = ''
if ("$2" == "build") then
    set opr = build
else if ("$2" == "clean") then
    set opr = clean
else
    echo "Usage: $0 cfg opr"
    echo "cfg in {DebugStatic,ReleaseStatic,DebugDynamic,ReleaseDynamic}"
    echo "opr in {build,clean}"
    exit
endif

cd LibCore
xcodebuild -project LibCore.xcodeproj -configuration Default -target "${libTarget}" $opr
cd ..

cd LibMathematics
xcodebuild -project LibMathematics.xcodeproj -configuration Default -target "${libTarget}" $opr
cd ..

cd LibImagics
xcodebuild -project LibImagics.xcodeproj -configuration Default -target "${libTarget}" $opr
cd ..

cd LibPhysics
xcodebuild -project LibPhysics.xcodeproj -configuration Default -target "${libTarget}" $opr
cd ..

cd LibGraphics
xcodebuild -project LibGraphics.xcodeproj -configuration Default -target "${libTarget}" $opr
cd ..

cd LibApplications/GlutApplication
xcodebuild -project GlutApplication.xcodeproj -configuration Default -target "${libTarget}" $opr
cd ../..

cd SampleGraphics
set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -project $dir.xcodeproj -configuration Default -target "$appTarget" $opr
        cd ..
    endif
end
cd ..

cd SampleImagics
set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -project $dir.xcodeproj -configuration Default -target "$appTarget" $opr
        cd ..
    endif
end
cd ..

cd SampleMathematics
set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -project $dir.xcodeproj -configuration Default -target "$appTarget" $opr
        cd ..
    endif
end
cd ..

cd SamplePhysics
set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -project $dir.xcodeproj -configuration Default -target "$appTarget" $opr
        cd ..
    endif
end
cd ..