This repository was archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sh
executable file
·52 lines (47 loc) · 1.72 KB
/
build.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
#!/bin/sh
#
# ./build.sh -d will build the Documentation (docs/index.html)
# ./build.sh -e will build the example SWF (example.swf)
# ./build.sh -s will build the SWC library (IABLib.SWC)
# ./build.sh -des will build all.
NO_ARGS=0
PROG_NAME=$(basename $0)
if [ "$#" -eq "$NO_ARGS" ]
then
echo "usage: ./build.sh [-d | -e | -s]"
else
while getopts des OPTION
do
case ${OPTION} in
d)
asdoc \
-source-path=src \
-doc-sources=src/com/hinish/spec \
-output=docs
;;
e)
mxmlc examples/src/com/hinish/examples/vast/VASTExample1.as \
--source-path+=examples/src \
--library-path+=examples/libs \
-static-link-runtime-shared-libraries \
--output=examples/bin/VASTExample1.swf
mxmlc examples/src/com/hinish/examples/vpaid/ExampleAd.as \
--source-path+=examples/src \
--library-path+=examples/libs \
-static-link-runtime-shared-libraries \
--output=examples/bin/ExampleAd.swf
mxmlc examples/src/com/hinish/examples/vpaid/Player.as \
--source-path+=examples/src \
--library-path+=examples/libs \
-static-link-runtime-shared-libraries \
--output=examples/bin/Player.swf
;;
s)
compc \
--source-path+=src \
--include-sources=src \
--output=./bin/IABLib.swc
;;
esac
done
fi