My favorites
▼
|
Sign in
flycode
Random bits of code from Flying Meat.
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
buildapp
/
bin
/
babuild.sh
‹r8
r167
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
116
117
118
119
120
121
#!/bin/bash
revision=""
upload=1
twitter=""
while [ "$#" -gt 0 ]
do
case "$1" in
--revision|-r)
revision="-r $2"
upload=0
break
;;
--noupload|-n)
upload=0
break
;;
--twitter|-t)
twitter="$2"
break
;;
*)
echo "$CMDNAME: invalid option: $1" 1>&2
exit 1
;;
esac
shift
done
# this is where our final build ends up
if [ ! -d ~/svnbuilds ]; then
mkdir ~/svnbuilds
fi
if [ -f /tmp/BuildAppPreview.dmg ]; then
rm /tmp/BuildAppPreview.dmg
fi
cd /tmp
echo "doing checkout ($revision)"
if [ -f /tmp/buildapp ]; then
rm /tmp/buildapp
fi
svn co $revision http://flycode.googlecode.com/svn/trunk/buildapp buildapp
cd /tmp/buildapp
buildDate=`/bin/date +"%Y.%m.%d.%H"`
v=`svnversion -n /tmp/buildapp`
echo setting build date
sed -e "s/BUILDID/$v/g" res/Info.plist > res/Info.plist.tmp
mv res/Info.plist.tmp res/Info.plist
find . | grep \.svn$ | xargs rm -rf
# got tests?
#echo running tests
#xcodebuild -target TestTarget -configuration Release OBJROOT=/tmp/buildapp/build SYMROOT=/tmp/buildapp/build OTHER_CFLAGS=""
#if [ $? != 0 ]; then
# echo "Bad test results"
# exit
#fi
echo building project
xcodebuild -target BuildApp -configuration Release OBJROOT=/tmp/buildapp/build SYMROOT=/tmp/buildapp/build OTHER_CFLAGS=""
if [ $? != 0 ]; then
echo "Bad build for BuildApp"
say "bad build!"
else
#ok, let's index the documentation if we've got it.
#/Developer/Applications/Utilities/Help\ Indexer.app/Contents/MacOS/Help\ Indexer "/tmp/buildapp/build/Release/BuildApp.app/Contents/Resources/English.lproj/BuildAppHelp"
cd /tmp/buildapp/
mv /tmp/buildapp/build/Release/BuildApp.app ~/svnbuilds/.
# make the disks.
/tmp/buildapp/bin/makedisk.sh
# if you see stuff print out- gotta do something about that :)
cd ~/svnbuilds/
find . | grep h$
find . | grep svn
rm -rf ~/svnbuilds/BuildApp.app
cd ~/svnbuilds/
cp BuildAppPreview.dmg $v-BuildAppPreview.dmg
if [ $upload == 1 ]; then
echo uploading to server...
# upload your disk here.
if [ "$twitter" != "" ]; then
echo "Calling twitter: $twitter"
curl -u someone@somewhere.com:password -d status="BuildApp v$v is up. $twitter" http://twitter.com/statuses/update.xml
fi
fi
open ~/svnbuilds
say "done building"
fi
rm -rf /tmp/buildapp
Show details
Hide details
Change log
r9
by gusmueller on Mar 21, 2007
Diff
comments
Go to:
/trunk/buildapp/bin/babuild.sh
Project members,
sign in
to write a code review
Older revisions
r8
by gusmueller on Mar 21, 2007
Diff
fixed build script
r7
by gusmueller on Mar 21, 2007
Diff
foo
r6
by gusmueller on Mar 21, 2007
Diff
wee
All revisions of this file
File info
Size: 2681 bytes, 121 lines
View raw file
File properties
svn:executable
*
Powered by
Google Project Hosting