~ubuntu-branches/ubuntu/precise/xserver-xorg-input-evdev/precise-proposed

« back to all changes in this revision

Viewing changes to debian/xsfbs/repack.sh

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-01-10 15:00:27 UTC
  • mfrom: (1.1.18) (24.1.12 experimental)
  • Revision ID: package-import@ubuntu.com-20120110150027-de7p2hpnb044d4vm
Tags: 1:2.6.99.901-1ubuntu2
* Patch configure.ac for Ubuntu Xi 2.2 support
  - 0004-xi22-ubuntu.patch
* Remove obsolete --enable-multitouch configure flag

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