summaryrefslogtreecommitdiff
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
parenta657136c3316443f3f970b1df0c438311cfa7c4f (diff)
Repack upstream tarball to exclude unimportant files
-rw-r--r--debian/README.source8
-rwxr-xr-xdebian/rules8
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..1619644
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,8 @@
+scons-doc for Debian
+--------------------
+
+.orig.tar.gz archive has been repacked using get-orig-source target, available
+in debian/rules, to exclude unimportant files to generate SCons documentation.
+
+ -- Luca Falavigna <dktrkranz@debian.org> Tue, 08 Sep 2009 22:54:35 +0200
+
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