~ubuntu-branches/ubuntu/oneiric/enigmail/oneiric-updates

« back to all changes in this revision

Viewing changes to debian/make-orig

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2010-04-10 01:42:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100410014224-fbq9ui5x3b0h2t36
Tags: 2:1.0.1-0ubuntu1
* First releaase of enigmail 1.0.1 for tbird/icedove 3
  (LP: #527138)
* redo packaging from scratch 
  + add debian/make-orig target that uses xulrunner provided
    buildsystem + enigmail tarball to produce a proper orig.tar.gz
  + use debhelper 7 with mozilla-devscripts
  + use debian source format 3.0 (quilt)
  + patch enigmail to use frozen API only
    - add debian/patches/frozen_api.diff
  + patch build system to not link against -lxul - which isnt
    available for sdks produced by all-static apps like tbird
    - add debian/patches/build_system_dont_link_libxul.diff
  + add minimal build-depends to control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
progname=`basename $0`
 
4
enigtgz="$1"
 
5
buildtgz="$2"
 
6
targetdir="$3"
 
7
specialversion="$4"
 
8
 
 
9
usage() {
 
10
   echo $progname '<path-to-enigmail-tgz> <path-to-build-system-tgz> <target-dir> [special-version]'
 
11
   exit 1
 
12
}
 
13
 
 
14
if test -z "$enigtgz" -o -z "$buildtgz" -o -z "$targetdir"; then
 
15
        usage
 
16
fi
 
17
 
 
18
enigbase=`basename $enigtgz`
 
19
enigvers=`echo $enigbase | sed -e 's/^.*-\([^-]*\).tar.gz$/\1/'`
 
20
 
 
21
if test -z "enigvers"; then
 
22
        echo "couldnt auto guess version from enigmail tarball ($enigtgz)"
 
23
        exit 2
 
24
fi
 
25
 
 
26
tmpdir=`mktemp -d -t $progname.XXXXXX`
 
27
echo preparing in $tmpdir
 
28
 
 
29
mkdir -p $tmpdir/mozilla/
 
30
tar -C $tmpdir/mozilla/ -xzf $buildtgz
 
31
tar -C $tmpdir/mozilla/extensions/ -xzf $enigtgz
 
32
sh -c "cd $tmpdir/mozilla; autoconf2.13; echo autoconf done"
 
33
 
 
34
makefiles=`find $tmpdir/mozilla/extensions/enigmail -name Makefile.in`
 
35
for i in $makefiles; do
 
36
        sed -i 's/\(DEPTH.*\)\/\.\./\1/' $i
 
37
done
 
38
 
 
39
tar -C $tmpdir -czf $targetdir/enigmail_$enigvers.orig.tar.gz mozilla/
 
40
 
 
41
rm -r $tmpdir