summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorLuca Falavigna <dktrkranz@debian.org>2009-09-09 00:43:41 +0200
committerLuca Falavigna <dktrkranz@debian.org>2009-09-09 00:43:41 +0200
commit19f88a00108c65c28bca77301e7a82551939003c (patch)
tree58dc9d24dde8f792d898021d3d09b4536bfa21f3 /debian/rules
parenta657136c3316443f3f970b1df0c438311cfa7c4f (diff)
Repack upstream tarball to exclude unimportant files
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 99733cb..8000dce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/\+/\-/')
+
%:
dh $@
@@ -10,3 +12,9 @@ override_dh_auto_clean:
override_dh_auto_install:
scons doc
+get-orig-source:
+ wget http://downloads.sourceforge.net/project/scons/scons-src/${VERSION}/scons-src-${VERSION}.tar.gz -O ../scons-src-${VERSION}.tar.gz
+ tar fxz ../scons-src-${VERSION}.tar.gz -C ../ && mv ../scons-src-${VERSION} ../scons-doc-${VERSION}
+ tar czf ../scons-doc_${VERSION}.orig.tar.gz ../scons-doc-${VERSION}/bin ../scons-doc-${VERSION}/config \
+ ../scons-doc-${VERSION}/doc ../scons-doc-${VERSION}/LICENSE ../scons-doc-${VERSION}/SConstruct ../scons-doc-${VERSION}/src
+ rm -fr ../scons-doc-${VERSION} ../scons-src-${VERSION}.tar.gz