[SCM] Sun multi-schema XML validator branch, master, updated. debian/2009.1+dfsg1-3-6-g17acd53

Giovanni Mascellani mascellani at poisson.phc.unipi.it
Wed May 22 15:04:23 UTC 2013


The following commit has been merged in the master branch:
commit 17acd53c010647c4db4222daee5e53cadc8803dc
Author: Giovanni Mascellani <mascellani at poisson.phc.unipi.it>
Date:   Sun May 19 15:24:48 2013 +0200

    Create orig-tar.sh and update README.source.

diff --git a/debian/README.source b/debian/README.source
index 8995f58..d146fa6 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -2,15 +2,13 @@
 msv package for Debian
 ----------------------
 
-The original tarball for the package msv was obtained exporting
-a copy of the tag msv-2009.1 from the upstream SVN repository
-(https://svn.java.net/svn/msv~svn) and then performing the
+The original tarball for the package msv was obtained exporting a copy
+of the relevan tag from the upstream SVN repository
+(https://svn.java.net/svn/msv~svn/tags) and then performing the
 following actions to make it DFSG-compliant:
 
- * remove all the precompiled .zip and .jar files;
- * remove the whole generator/ subdirectory, that is
-   non-free;
- * remove two documentation .vsd files, that are non-free.
+ * remove two documentation .vsd files, that are non-free (since
+   they're binary files for which no editor or source code is known).
 
 Giovanni Mascellani <gio at debian.org>
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..9764d18
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e
+
+VERSION="$2"
+DOWNLOADED_FILE="$3"
+PACKAGE="$(dpkg-parsechangelog | sed -n 's/^Source: //p')"
+TEMPDIR="$(mktemp -d)"
+DIR="${PACKAGE}-${VERSION}"
+
+rm -f "$DOWNLOADED_FILE"
+svn export "https://svn.java.net/svn/msv~svn/tags/msv-$VERSION" "$TEMPDIR/$DIR"
+find "$TEMPDIR/$DIR" -name '*.vsd' -delete
+GZIP=--best tar -c -z -f "../${PACKAGE}_$VERSION.orig.tar.gz" -C "$TEMPDIR" "$DIR"
+rm -fr "$TEMPDIR"
diff --git a/debian/watch b/debian/watch
index 6c89bde..7cc332a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 version=3
 opts=dversionmangle=s/\+dfsg.*// \
-https://java.net/projects/msv/sources/svn/show/tags .*/msv-([0-9]{4}\.[\d\.]+)\?.*
+https://java.net/projects/msv/sources/svn/show/tags .*/msv-([0-9]{4}\.[\d\.]+)\?.* debian ./debian/orig-tar.sh

-- 
Sun multi-schema XML validator



More information about the pkg-java-commits mailing list