Debian Codegraph @

macosx/make_dmg_step2

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # This script is used by the buildbot master to create a dmg, based
4 # on a 'template'. It populates the template using:
5 # 1- the content of the freedroidRPG.app transferred from the 1st step
6 # buildbot worker.
7 # 2- the game data from the local repo
8 #
9 # This 2 steps process is needed because the first step is executed
10 # on a MacMini with a low internet bandwidth, too low to transfer a whole
11 # dmg in a reasonable time.
12
13 on_exitscip-shell shell freedroidrpg 1.0+ds-1 on_exit().() {
14 findmntscip-shell system . . findmnt. $WORKDIR/wc >/dev/nullscip-shell filesystem . . `/dev/null`. && umountscip-shell system . . umount. $WORKDIR/wc
15 rmscip-shell system . . rm. -f $WORKDIR/wc.dmg
16 }
17
18 trap on_exit 0
19 set -e
20 set -x
21
22 WORKDIR=dmg_tmp
23 [scip-shell system . . `[`. -d ${WORKDIR} ] && rmscip-shell system . . rm. -rf ${WORKDIR}
24 mkdirscip-shell system . . mkdir. ${WORKDIR}
25 mkdirscip-shell system . . mkdir. ${WORKDIR}/wc
26
27 gunzipscip-shell system . . gunzip. -c macosx/template.dmg.gz > ${WORKDIR}/wc.dmg
28 mountscip-shell system . . mount. ${WORKDIR}/wc
29
30 tarscip-shell system . . tar. -C ${WORKDIR}/wc/FreedroidRPG -xzf lite-freedroidRPG.app.tgz
31
32 tarscip-shell system . . tar. -c -f - --exclude='.svn' --exclude='.git' --exclude='Makefile' --exclude='*~' --exclude='.#*' data locale lua_modules | (cd ${WORKDIR}/wc/FreedroidRPG/freedroidRPG.app/Contents; tarscip-shell system . . tar. -xf -)
33 cpscip-shell system . . cp. COPYING AUTHORS README ChangeLog ${WORKDIR}/wc/FreedroidRPG
34
35 tarscip-shell system . . tar. -czf freedroidRPG.app.tgz -C ${WORKDIR}/wc/FreedroidRPG freedroid.app
36
37 umountscip-shell system . . umount. ${WORKDIR}/wc
38
39 /usr/local/bin/dmgscip-shell filesystem . . `/usr/local/bin/dmg`. dmg ${WORKDIR}/wc.dmg FreedroidRPG.dmg > /dev/nullscip-shell filesystem . . `/dev/null`.
40
41 [scip-shell system . . `[`. -d ${WORKDIR} ] && rmscip-shell system . . rm. -rf ${WORKDIR}
42
43 set +x
44 trap '' 0