]> git.saurik.com Git - wxWidgets.git/blob - distrib/autopackage/makeautopackage
remove extra semicolon
[wxWidgets.git] / distrib / autopackage / makeautopackage
1 #!/bin/bash
2 # Author: Francesco Montorsi <frm@users.sourceforge.net>
3
4 rootdir=../..
5 thisdir=distrib/autopackage
6 currloc="http://biolpc22.york.ac.uk/pub/autopackage/wxgtk/"
7
8 function reminder
9 {
10 echo = REMINDER ===================================================
11 echo Now that the autopackage has been built successfully, remember
12 echo to upload the .meta, .package and .xml files to the
13 echo " $currloc"
14 echo folder.
15 echo ==============================================================
16 }
17
18 function build_package
19 {
20 me=`basename $0`
21 cd $rootdir
22 if [[ ! -f "config.status" ]]; then
23 echo $me: Running a fake configure just to create a config.status
24 echo $me: with a valid PACKAGE_VERSION set... please wait.
25 ./configure >/dev/null 2>&1
26 fi
27
28 if [[ "$1" = "--help" ]]; then
29 makeinstaller $@
30 exit 0
31 fi
32
33 # this will automatically update wxgtk.apspec from wxgtk.apspec.in
34 # using config.status script
35 makeinstaller $@ $thisdir/wxgtk.apspec
36
37 if [[ "$?" = "0" ]]; then
38 mv *.package *.xml *.meta $thisdir >/dev/null 2>&1
39 reminder
40 fi
41 }
42
43 function clean_previous
44 {
45 rm -f wxgtk.apspec # this was generated from wxgtk.apspec.in
46 rm -f *.xml *.package *.meta
47 }
48
49
50 clean_previous
51 build_package $@