The following commit has been merged in the master branch:
commit 99cfc425ebbc2e9a0d93d6cb65bb4602cdfa8d15
Author: Giovanni Mascellani <[email protected]>
Date:   Wed Nov 23 07:42:47 2011 +0100

    Add script to download mathpiper from SVN.

diff --git a/debian/get_orig_source.sh b/debian/get_orig_source.sh
new file mode 100755
index 0000000..0fe1ade
--- /dev/null
+++ b/debian/get_orig_source.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+# Input:
+# $VERSION - the upstream version of the generated tarball
+# $REVISION (optional) - export a specific revision of the SVN repository
+# $ONLYFILTER - if not null, don't download the tarball from the SVN; just 
re-filter its content
+
+DESTDIR="../tarballs/mathpiper-$VERSION"
+DESTTGZ="../tarballs/mathpiper_$VERSION.orig.tar.gz"
+
+if [ "x$ONLYFILTER" == "x" ] ; then
+       # Downloads code from SVN repository
+       test -d ../tarballs/. || mkdir -p ../tarballs
+       if [ "x$REVISION" == "x" ] ; then
+               svn export 
"http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mathpiper"; 
"$DESTDIR"
+       else
+               svn export -r "$REVISION" 
"http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mathpiper"; 
"$DESTDIR"
+       fi
+else
+       # Uncompress the previous tarball
+       tar xzfv "$DESTTGZ" -C `dirname "$DESTDIR"`
+fi
+
+# Removes embedded copies of other software
+rm -vfr "$DESTDIR/src/org/mathpiper/ui/gui/jmathtex"
+rm -vfr "$DESTDIR/src/org/apache"
+rm -vfr "$DESTDIR/src/org/matheclipse"
+rm -vfr "$DESTDIR/src/org/scilab"
+rm -vfr "$DESTDIR/src/edu"
+
+# Remove other unecessary files
+rm -vfr "$DESTDIR/misc"
+
+# Removes all upstream JARs, DLLs, SOs and JNILIBs
+for ext in jar dll so jnilib ; do
+       find "$DESTDIR" -iname '*'."$ext" -print0 | xargs -0 rm -vf
+done
+
+# Builds tarball
+tar czfv "$DESTTGZ" -C `dirname "$DESTDIR"` `basename "$DESTDIR"`
+
+# Deletes snapshot and temporary dir
+rm -fr "$DESTDIR"

-- 
Mathpiper: a Java Computer Algebra System

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to