[pkg-java] r3962 - trunk/lucene2/debian

janpascal-guest at alioth.debian.org janpascal-guest at alioth.debian.org
Wed Aug 1 20:31:39 UTC 2007


Author: janpascal-guest
Date: 2007-08-01 20:31:39 +0000 (Wed, 01 Aug 2007)
New Revision: 3962

Added:
   trunk/lucene2/debian/get-orig-source.sh
Removed:
   trunk/lucene2/debian/download-upstream
Modified:
   trunk/lucene2/debian/rules
Log:
Renamed download-upstream script to comply with Debian practices

Deleted: trunk/lucene2/debian/download-upstream
===================================================================
--- trunk/lucene2/debian/download-upstream	2007-08-01 20:31:34 UTC (rev 3961)
+++ trunk/lucene2/debian/download-upstream	2007-08-01 20:31:39 UTC (rev 3962)
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-DEHS=`( uscan --dehs )`
-
-URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -`
-VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -`
-
-DESTDIR=$PWD/..
-PRISTINE_SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz
-SIGFILE=$DESTDIR/lucene-$VERSION-src.tar.gz.asc
-SOURCETAR=$DESTDIR/lucene2_$VERSION.orig.tar
-SOURCETARGZ=$DESTDIR/lucene2_$VERSION.orig.tar.gz
-
-KEYURL="http://www.apache.org/dist/lucene/java/KEYS"
-KEYFILE="debian/KEYS"
-KEYRING="debian/lucene-keyring.gpg"
-
-# Download source tarball and signature file
-wget "$URL" -O $PRISTINE_SOURCEFILE
-wget "$URL.asc" -O $SIGFILE
-
-# If necessary, recreate keyring used for signing
-# Only do this if the keyring is not yet downloaded
-if [ ! -r $KEYFILE ]; then
-    wget "$KEYURL" -O "$KEYFILE"
-fi
-
-if [ ! -r $KEYRING ]; then
-    touch $KEYRING
-    gpg --no-default-keyring --primary-keyring $KEYRING --import $KEYFILE
-fi
-
-# Check signature
-gpgv --quiet --keyring $KEYRING $SIGFILE $PRISTINCE_SOURCEFILE
-
-echo "Check whether the archive has been signed by Michael Busch (Lucene Committer) <buschmi at apache.org>, key ID 6BD872A0"
-
-# Repackage upstream source file without the third party jars
-TEMPDIR=`mktemp -d`
-echo "Unpacking into tempdir $TEMPDIR..."
-tar xzf $PRISTINE_SOURCEFILE -C $TEMPDIR
-
-echo "Removing third party jars..."
-find $TEMPDIR -name \*.jar -exec rm {} \;
-
-echo "Packing new orig source tarball $SOURCEFILE..."
-rm -f $SOURCETAR $SOURCETARGZ
-cd $TEMPDIR
-tar cf $SOURCETAR *
-gzip -9 $SOURCETAR
-cd $DESTDIR
-
-echo "Removing tempdir..."
-rm -rf "$TEMPDIR"
-

Added: trunk/lucene2/debian/get-orig-source.sh
===================================================================
--- trunk/lucene2/debian/get-orig-source.sh	                        (rev 0)
+++ trunk/lucene2/debian/get-orig-source.sh	2007-08-01 20:31:39 UTC (rev 3962)
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+DEHS=`( uscan --dehs )`
+
+URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -`
+VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -`
+
+DESTDIR=$PWD/..
+PRISTINE_SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz
+SIGFILE=$DESTDIR/lucene-$VERSION-src.tar.gz.asc
+SOURCETAR=$DESTDIR/lucene2_$VERSION.orig.tar
+SOURCETARGZ=$DESTDIR/lucene2_$VERSION.orig.tar.gz
+
+KEYURL="http://www.apache.org/dist/lucene/java/KEYS"
+KEYFILE="debian/KEYS"
+KEYRING="debian/lucene-keyring.gpg"
+
+# Download source tarball and signature file
+wget "$URL" -O $PRISTINE_SOURCEFILE
+wget "$URL.asc" -O $SIGFILE
+
+# If necessary, recreate keyring used for signing
+# Only do this if the keyring is not yet downloaded
+if [ ! -r $KEYFILE ]; then
+    wget "$KEYURL" -O "$KEYFILE"
+fi
+
+if [ ! -r $KEYRING ]; then
+    touch $KEYRING
+    gpg --no-default-keyring --primary-keyring $KEYRING --import $KEYFILE
+fi
+
+# Check signature
+gpgv --quiet --keyring $KEYRING $SIGFILE $PRISTINCE_SOURCEFILE
+
+echo "Check whether the archive has been signed by Michael Busch (Lucene Committer) <buschmi at apache.org>, key ID 6BD872A0"
+
+# Repackage upstream source file without the third party jars
+TEMPDIR=`mktemp -d`
+echo "Unpacking into tempdir $TEMPDIR..."
+tar xzf $PRISTINE_SOURCEFILE -C $TEMPDIR
+
+echo "Removing third party jars..."
+find $TEMPDIR -name \*.jar -exec rm {} \;
+
+echo "Packing new orig source tarball $SOURCEFILE..."
+rm -f $SOURCETAR $SOURCETARGZ
+cd $TEMPDIR
+tar cf $SOURCETAR *
+gzip -9 $SOURCETAR
+cd $DESTDIR
+
+echo "Removing tempdir..."
+rm -rf "$TEMPDIR"
+


Property changes on: trunk/lucene2/debian/get-orig-source.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/lucene2/debian/rules
===================================================================
--- trunk/lucene2/debian/rules	2007-08-01 20:31:34 UTC (rev 3961)
+++ trunk/lucene2/debian/rules	2007-08-01 20:31:39 UTC (rev 3962)
@@ -183,8 +183,8 @@
 	mv $(UPSTREAM_BASENAME)/* .
 	rmdir $(UPSTREAM_BASENAME)
 
-download-upstream:
-	debian/download-upstream
+get-orig-source:
+	debian/get-orig-source.sh
 
 upload:
 	cd .. ; dupload -t vanbest lucene2_$(DEBIAN_VERSION)_$(DEBIAN_ARCH).changes




More information about the pkg-java-commits mailing list