[pkg-java] r12646 - trunk/icu4j-4.2/debian
Torsten Werner
twerner at alioth.debian.org
Wed Jun 23 19:33:47 UTC 2010
Author: twerner
Date: 2010-06-23 19:33:40 +0000 (Wed, 23 Jun 2010)
New Revision: 12646
Modified:
trunk/icu4j-4.2/debian/changelog
trunk/icu4j-4.2/debian/orig-tar.sh
trunk/icu4j-4.2/debian/rules
trunk/icu4j-4.2/debian/watch
Log:
Implement a get-orig-source target in debian/rules.
Modified: trunk/icu4j-4.2/debian/changelog
===================================================================
--- trunk/icu4j-4.2/debian/changelog 2010-06-23 17:37:38 UTC (rev 12645)
+++ trunk/icu4j-4.2/debian/changelog 2010-06-23 19:33:40 UTC (rev 12646)
@@ -1,5 +1,6 @@
icu4j-4.2 (4.2.1.1-1) unstable; urgency=low
+ [ Niels Thykier ]
* New upstream release. (Closes: #583808)
* Renamed package since eclipse 3.5.2 depends on 4.0.1.1.
* Removed dependencies on JREs - per the Java Policy this is no
@@ -10,8 +11,11 @@
* Bumped Standards-Version to 3.8.4 - no changes required.
* Removed NEWS and README.Debian; they were no longer relevant.
- -- Niels Thykier <niels at thykier.net> Mon, 21 Jun 2010 19:40:27 +0200
+ [ Torsten Werner ]
+ * Implement a get-orig-source target in debian/rules.
+ -- Torsten Werner <twerner at debian.org> Wed, 23 Jun 2010 21:32:29 +0200
+
icu4j (4.0.1.1-1) unstable; urgency=low
[ Andreas Tille ]
Modified: trunk/icu4j-4.2/debian/orig-tar.sh
===================================================================
--- trunk/icu4j-4.2/debian/orig-tar.sh 2010-06-23 17:37:38 UTC (rev 12645)
+++ trunk/icu4j-4.2/debian/orig-tar.sh 2010-06-23 19:33:40 UTC (rev 12646)
@@ -1,22 +1,17 @@
#!/bin/sh
-DEBIAN_DIR=`dirname $0`
TMPDIR=`mktemp -d`
[ -d $TMPDIR ] || exit 1
TMPDIR=`cd $TMPDIR > /dev/null && pwd`
-VERSION=`dpkg-parsechangelog -l$DEBIAN_DIR/changelog | grep ^Version | sed -e 's/Version:\s*//' -e 's/-.*//' `
+VERSION=$2
VERSION_FLAT=`echo $VERSION | sed "s/\./_/g"`
MAJOR=`echo $VERSION | cut -d . -f 1,2`
-echo "Fetching and tar'ing icu4j $VERSION, this may take a while..."
-
-cd $TMPDIR
-wget "http://download.icu-project.org/files/icu4j/$VERSION/icu4j-$VERSION_FLAT-src.jar" -Oicu4j.jar
-mkdir icu4j-$MAJOR
+mkdir $TMPDIR/icu4j-$MAJOR
echo "Unzipping..."
-unzip -qq -d icu4j-$MAJOR icu4j.jar
-rm -f icu4j.jar
+unzip -qq -d $TMPDIR/icu4j-$MAJOR $3
+rm -f $3
echo "Tar'ing..."
-tar czf ../icu4j-${MAJOR}_$VERSION.orig.tar.gz *
-cd .. && rm -fr $TMPDIR
-echo icu4j-${MAJOR}_$VERSION.orig.tar.gz
+tar -c -z -f ../icu4j-${MAJOR}_$VERSION.orig.tar.gz -C $TMPDIR icu4j-$MAJOR
+rm -fr $TMPDIR
+echo ../icu4j-${MAJOR}_$VERSION.orig.tar.gz
Modified: trunk/icu4j-4.2/debian/rules
===================================================================
--- trunk/icu4j-4.2/debian/rules 2010-06-23 17:37:38 UTC (rev 12645)
+++ trunk/icu4j-4.2/debian/rules 2010-06-23 19:33:40 UTC (rev 12646)
@@ -23,3 +23,6 @@
override_dh_auto_clean:
jh_clean
rm -f *.jar
+
+get-orig-source:
+ uscan --rename --force-download
Modified: trunk/icu4j-4.2/debian/watch
===================================================================
--- trunk/icu4j-4.2/debian/watch 2010-06-23 17:37:38 UTC (rev 12645)
+++ trunk/icu4j-4.2/debian/watch 2010-06-23 19:33:40 UTC (rev 12646)
@@ -1,5 +1,5 @@
version=3
opts="uversionmangle=s?_?.?g" \
-http://download.icu-project.org/files/icu4j/([0-9.]*)/icu4j-([[:digit:]_]+)-src\.jar
-
+http://download.icu-project.org/files/icu4j/(4\.2\.[\d.]*)/icu4j-([[:digit:]_]+)-src\.jar \
+ debian debian/orig-tar.sh
More information about the pkg-java-commits
mailing list