[syrthes/master] Non DFSG-free files removal during uscan.
Gilles Filippini
gilles.filippini at free.fr
Tue Sep 15 14:03:35 UTC 2009
---
debian/orig-tar.exclude | 1 +
debian/orig-tar.sh | 26 ++++++++++++++++++++++++++
debian/watch | 3 ++-
3 files changed, 29 insertions(+), 1 deletions(-)
create mode 100644 debian/orig-tar.exclude
create mode 100755 debian/orig-tar.sh
diff --git a/debian/orig-tar.exclude b/debian/orig-tar.exclude
new file mode 100644
index 0000000..e52ac16
--- /dev/null
+++ b/debian/orig-tar.exclude
@@ -0,0 +1 @@
+*/doc
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..dc18efa
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,26 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+SOURCE_NAME=syrthes
+VERSION=$2
+DEBIAN_VERSION=$VERSION-dfsg1
+UPSTREAM_SOURCE_DIR=${SOURCE_NAME}$VERSION
+DEBIAN_SOURCE_DIR=${SOURCE_NAME}-$DEBIAN_VERSION
+TAR=../${SOURCE_NAME}_$DEBIAN_VERSION.orig.tar.gz
+
+# clean up the upstream tarball
+tar xzf $3
+# rename upstream source dir
+mv ${UPSTREAM_SOURCE_DIR} ${DEBIAN_SOURCE_DIR}
+# Remove syrthes documentation besause of the license issues
+tar -c -z -X debian/orig-tar.exclude -f $TAR ${DEBIAN_SOURCE_DIR}/
+rm -rf ${DEBIAN_SOURCE_DIR} $3
+echo "syrthes: Applied DFSG removals and renamed tarball to `basename ${TAR}`"
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir
+ echo "moved $TAR to $origDir"
+fi
+
diff --git a/debian/watch b/debian/watch
index b6ef13d..6f1d984 100644
--- a/debian/watch
+++ b/debian/watch
@@ -2,6 +2,7 @@ version=3
# dversionmangle is used to remove the dfsg from the local debian version
# filenamemangle is used to get ride of the () and save the tarball under the right name
opts="dversionmangle=s/-dfsg.*//,filenamemangle=s/.*(\d)_(\d)_(\d).*/syrthes_$1.$2.$3.orig.tar.gz/" \
-http://research.edf.com/the-edf-offers/research-and-development/softwares/syrthes/syrthes-telechargement-en-600883.html .*/syrthes(\d)_(\d)_(\d).*\.tgz
+http://research.edf.com/the-edf-offers/research-and-development/softwares/syrthes/syrthes-telechargement-en-600883.html .*/syrthes(\d)_(\d)_(\d).*\.tgz \
+debian debian/orig-tar.sh
--
1.5.6.5
More information about the debian-science-commits
mailing list