summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-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