summaryrefslogtreecommitdiff
path: root/debian/purify_tarball
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <smimram@debian.org>2007-08-18 20:34:57 +0000
committerGravatar Samuel Mimram <smimram@debian.org>2007-08-18 20:34:57 +0000
commite5be0a14a05242ceb5d225e54dbe366dc9c4143b (patch)
tree02251977719ec7c52b37363218043b756b00a0bf /debian/purify_tarball
parentbe2a2fda89bba47d5342b7aebc10efd97f1d68b9 (diff)
New upstream release.debian/8.1.pl1+dfsg-1
Diffstat (limited to 'debian/purify_tarball')
-rwxr-xr-xdebian/purify_tarball26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/purify_tarball b/debian/purify_tarball
new file mode 100755
index 00000000..4682a21c
--- /dev/null
+++ b/debian/purify_tarball
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+CURDIR=`pwd`
+ORIG=$1
+WORKDIR=`dirname $ORIG`
+ORIGFILE=`basename $ORIG`
+VERSION=`echo "$ORIGFILE" | sed "s/^coq-\([0-9\.a-z]\+\)\.tar\.gz$/\1/"`
+
+cd $WORKDIR
+
+tar zxf $ORIGFILE
+
+rm -rf coq-$VERSION/doc/common
+rm -rf coq-$VERSION/doc/faq
+rm -rf coq-$VERSION/doc/RecTutorial
+rm -rf coq-$VERSION/doc/refman
+rm -rf coq-$VERSION/doc/rt
+rm -rf coq-$VERSION/doc/tools
+rm -rf coq-$VERSION/doc/tutorial
+
+tar zcf coq_$VERSION+dfsg.orig.tar.gz coq-$VERSION/
+rm -rf coq-$VERSION
+
+cd $CURDIR