]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # Build application and make a tarball. | |
3 | ||
4 | cd ~/wxconfigtool-build | |
5 | ||
6 | echo Building wxWindows... | |
7 | makeapp release wx | |
8 | ||
9 | rm -f wxconfigtool-build-release/wxconfigtool | |
10 | ||
11 | if [ "$1" = "clean" ]; then | |
12 | rm -f wxconfigtool-build-release/* | |
13 | fi | |
14 | ||
15 | echo Building Application... | |
16 | makeapp release all | |
17 | ||
18 | if [ ! -f wxconfigtool-build-release/wxconfigtool ]; then | |
19 | echo *** Sorry, wxconfigtool was not built correctly. | |
20 | exit | |
21 | fi | |
22 | ||
23 | echo Making tarball... | |
24 | makeapp release release | |
25 | ||
26 | # appver will have been written by the 'release' target. | |
27 | APPVER=`/tmp/appver` | |
28 | ||
29 | cd /tmp/wxconfigtool-deliver | |
30 | APPARCHIVE=wxconfigtool-$APPVER-i386.tar.gz | |
31 | ||
32 | # echo Copying tarball $APPARCHIVE to ftp site... | |
33 | # You can use a script to copy this to an ftp site, | |
34 | # using for example, the 'curl' utility. | |
35 | # curl ftp://www.mysite.com/$APPARCHIVE --user "myname:mypassword" --upload-file $APPARCHIVE | |
36 | ||
37 | echo Done building and archiving wxconfigtool. |