~ubuntu-branches/ubuntu/raring/xserver-xorg-video-sis/raring

« back to all changes in this revision

Viewing changes to debian/xsfbs/repack.sh

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2011-02-05 14:55:47 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110205145547-ni0uqf5nk53n2682
Tags: 1:0.10.3-3
* Switch to dh:
  - Use debhelper 8.
  - Use dh-autoreconf.
  - Bump xserver-xorg-dev build-dep for dh_xsf_substvars and xsf
    debhelper sequence.
* Remove xsfbs accordingly.
* Update Uploaders list. Thanks, David & Brice!
* Remove long obsolete Replaces/Conflicts.
* Wrap Depends/Provides.
* Bump Standards-Version to 3.9.1 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
if ! [ -d debian/prune ]; then
6
 
        exit 0
7
 
fi
8
 
 
9
 
if [ "x$1" != x--upstream-version ]; then
10
 
        exit 1
11
 
fi
12
 
 
13
 
version="$2"
14
 
filename="$3"
15
 
 
16
 
if [ -z "$version" ] || ! [ -f "$filename" ]; then
17
 
        exit 1
18
 
fi
19
 
 
20
 
dir="$(pwd)"
21
 
tempdir="$(mktemp -d)"
22
 
 
23
 
cd "$tempdir"
24
 
tar xf "$dir/$filename"
25
 
cat "$dir"/debian/prune/* | while read file; do rm -f */$file; done
26
 
 
27
 
tar czf "$dir/$filename" *
28
 
cd "$dir"
29
 
rm -rf "$tempdir"
30
 
echo "Done pruning upstream tarball"
31
 
 
32
 
exit 0