]> git.saurik.com Git - wxWidgets.git/blob - debian/build_all
Handle accelerators earlier in keyboard processing code in wxGTK.
[wxWidgets.git] / debian / build_all
1 #!/bin/sh
2 ##############################################################################
3 # Name: debian/build_all
4 # Purpose: build both ANSI and Unicode Debian packages at once
5 # Created: 2006-12-13
6 # RCS-ID: $Id$
7 # Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8 # Licence: wxWindows licence
9 ##############################################################################
10
11 # The following variables may be defined:
12 # wx The wxWidgets root directory (if it's unset you have to run the
13 # script from this directory)
14 # debsrc_dir If set, suppose there are already debian sources in this dir
15
16 set -e
17 wx_dir=${wx-`pwd`}
18 if [ ! -f $wx_dir/debian/build_all ]; then
19 echo "Please run the script from the root wx directory" >&2
20 exit 1
21 fi
22
23 (
24 if [ -z $debsrc_dir ]; then
25 configure_dir=/tmp/wxtmp-$$
26
27 mkdir $configure_dir
28 cd $configure_dir
29 $wx_dir/configure --without-subdirs > /dev/null
30 make debian-dist > /dev/null
31 debsrc_dir=`grep 'DEBIAN_SOURCE_DIR =' Makefile | sed 's@.*/@@'`
32 cd ..
33 rm -rf $configure_dir
34 fi
35
36 cd $wx_dir/../$debsrc_dir
37 ./debian/rules debian/control
38 dpkg-buildpackage -rfakeroot > /dev/null
39
40 fakeroot ./debian/rules clean
41
42 sed -i '/^WX_UNICODE := /s/1/0/' debian/rules
43 rm debian/control
44 ./debian/rules debian/control
45 dpkg-buildpackage -rfakeroot > /dev/null
46
47 sed -i '/^WX_UNICODE := /s/0/1/' debian/rules
48 fakeroot ./debian/rules clean
49
50 ) 2>&1 | tee $wx_dir/debian/build.log