~ubuntu-branches/ubuntu/vivid/wxwidgets2.8/vivid

« back to all changes in this revision

Viewing changes to debian/build_all

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2010-07-20 01:55:41 UTC
  • Revision ID: james.westby@ubuntu.com-20100720015541-f4j0v8g28tdvp9xj
Tags: 2.8.11.0-0ubuntu2
* Merge *some* changes from Debian package (version 2.8.10.1-3). This should
  make merges easier. Also fixes LP: #559822. Also merged several patches.
* Remove debian/patches/editra_pixmaps.dpatch patch, we don't ship editra
  anymore.
* Remove files which broke update-alternatives (LP: #379573).
* Switch to format 3.0 (quilt).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: build_all,v 1.1 2006/12/13 13:14:40 VZ Exp $
 
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
fakeroot ./debian/rules clean
 
48
 
 
49
) 2>&1 | tee $wx_dir/debian/build.log