]> git.saurik.com Git - wxWidgets.git/blame - debian/build_all
Handle deprecated background styles correctly in wxMSW.
[wxWidgets.git] / debian / build_all
CommitLineData
31a8ceaf
VZ
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
16set -e
17wx_dir=${wx-`pwd`}
18if [ ! -f $wx_dir/debian/build_all ]; then
19 echo "Please run the script from the root wx directory" >&2
20 exit 1
21fi
22
23(
24if [ -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
34fi
35
36cd $wx_dir/../$debsrc_dir
37./debian/rules debian/control
38dpkg-buildpackage -rfakeroot > /dev/null
39
40fakeroot ./debian/rules clean
41
42sed -i '/^WX_UNICODE := /s/1/0/' debian/rules
43rm debian/control
44./debian/rules debian/control
45dpkg-buildpackage -rfakeroot > /dev/null
46
7239c22f 47sed -i '/^WX_UNICODE := /s/0/1/' debian/rules
31a8ceaf
VZ
48fakeroot ./debian/rules clean
49
50) 2>&1 | tee $wx_dir/debian/build.log