[pkg-java] r10817 - trunk/simple-xml/debian

Sylvestre Ledru sylvestre-guest at alioth.debian.org
Tue Oct 13 13:09:01 UTC 2009


Author: sylvestre-guest
Date: 2009-10-13 13:09:00 +0000 (Tue, 13 Oct 2009)
New Revision: 10817

Added:
   trunk/simple-xml/debian/orig-tar.exclude
   trunk/simple-xml/debian/orig-tar.sh
Removed:
   trunk/simple-xml/debian/repack.sh
Modified:
   trunk/simple-xml/debian/watch
Log:
repack script which can be called with uscan

Added: trunk/simple-xml/debian/orig-tar.exclude
===================================================================
--- trunk/simple-xml/debian/orig-tar.exclude	                        (rev 0)
+++ trunk/simple-xml/debian/orig-tar.exclude	2009-10-13 13:09:00 UTC (rev 10817)
@@ -0,0 +1 @@
+*.jar

Added: trunk/simple-xml/debian/orig-tar.sh
===================================================================
--- trunk/simple-xml/debian/orig-tar.sh	                        (rev 0)
+++ trunk/simple-xml/debian/orig-tar.sh	2009-10-13 13:09:00 UTC (rev 10817)
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=simple-xml-$2
+TAR=../simple-xml_$2.orig.tar.gz
+
+# clean up the upstream tarball
+tar zxvf $3
+tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $TAR $origDir
+    echo "moved $TAR to $origDir"
+fi
+
+exit 0


Property changes on: trunk/simple-xml/debian/orig-tar.sh
___________________________________________________________________
Added: svn:executable
   + *

Deleted: trunk/simple-xml/debian/repack.sh
===================================================================
--- trunk/simple-xml/debian/repack.sh	2009-10-12 22:26:53 UTC (rev 10816)
+++ trunk/simple-xml/debian/repack.sh	2009-10-13 13:09:00 UTC (rev 10817)
@@ -1,36 +0,0 @@
-#! /bin/sh
-
-## This script takes the simple-xml upstream tarball and repacks it without
-## including any binary jar files.
-
-TEMP_DIR=simple-xml-repack-tmp
-SOURCE_FILE=$1
-
-# Create a temporary directory for repacking
-mkdir ${TEMP_DIR}
-
-# Unpack the source into the temporary directory
-tar xzf ${SOURCE_FILE} -C ${TEMP_DIR}
-
-# Change into temporary directory
-cd ${TEMP_DIR}
-
-# Remove binary files
-rm */lib/*.jar
-rm */jar/*.jar
-rm */test/lib/*.jar
-
-# Repack the source
-tar czf ${SOURCE_FILE} *
-
-# Change back to working directory
-cd ..
-
-# Remove old source file
-rm ${SOURCE_FILE}
-
-# Move new source file up
-mv ${TEMP_DIR}/${SOURCE_FILE} .
-
-# Remove temporary directory
-rm -r ${TEMP_DIR}

Modified: trunk/simple-xml/debian/watch
===================================================================
--- trunk/simple-xml/debian/watch	2009-10-12 22:26:53 UTC (rev 10816)
+++ trunk/simple-xml/debian/watch	2009-10-13 13:09:00 UTC (rev 10817)
@@ -1,4 +1,5 @@
 # Compulsory line, this is a version 3 file
 version=3
 
-http://sf.net/simple/simple-xml-(.*)\.tar\.gz
+http://sf.net/simple/simple-xml-(.*)\.tar\.gz debian debian/orig-tar.sh
+




More information about the pkg-java-commits mailing list