]>
git.saurik.com Git - wxWidgets.git/blob - debian/build_all
2 ##############################################################################
3 # Name: debian/build_all
4 # Purpose: build both ANSI and Unicode Debian packages at once
7 # Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8 # Licence: wxWindows licence
9 ##############################################################################
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
18 if [ ! -f $wx_dir/debian
/build_all
]; then
19 echo "Please run the script from the root wx directory" >&2
24 if [ -z $debsrc_dir ]; then
25 configure_dir
=/tmp
/wxtmp
-$$
29 $wx_dir/configure
--without-subdirs > /dev
/null
30 make debian
-dist > /dev
/null
31 debsrc_dir
=`grep 'DEBIAN_SOURCE_DIR =' Makefile | sed 's@.*/@@'`
36 cd $wx_dir/..
/$debsrc_dir
37 .
/debian
/rules debian
/control
38 dpkg
-buildpackage -rfakeroot > /dev
/null
40 fakeroot .
/debian
/rules clean
42 sed -i '/^WX_UNICODE := /s/1/0/' debian
/rules
44 .
/debian
/rules debian
/control
45 dpkg
-buildpackage -rfakeroot > /dev
/null
47 sed -i '/^WX_UNICODE := /s/0/1/' debian
/rules
48 fakeroot .
/debian
/rules clean
50 ) 2>&1 | tee $wx_dir/debian
/build.log