]> git.saurik.com Git - wxWidgets.git/blame - distrib/autopackage/makeautopackage
better documentation for wxWindow::SetSizerAndFit()
[wxWidgets.git] / distrib / autopackage / makeautopackage
CommitLineData
f8b35b7b
VZ
1#!/bin/bash
2# Author: Francesco Montorsi <frm@users.sourceforge.net>
3
4rootdir=../..
5thisdir=distrib/autopackage
6currloc="http://biolpc22.york.ac.uk/pub/autopackage/wxgtk/"
7
8function 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
18function 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
43function clean_previous
44{
45 rm -f wxgtk.apspec # this was generated from wxgtk.apspec.in
46 rm -f *.xml *.package *.meta
47}
48
49
50clean_previous
51build_package $@