[pkg-java] r7887 - in trunk/maven-debian-helper: debian share/maven-debian-helper
twerner at alioth.debian.org
twerner at alioth.debian.org
Sun Jan 25 22:19:03 UTC 2009
Author: twerner
Date: 2009-01-25 22:19:03 +0000 (Sun, 25 Jan 2009)
New Revision: 7887
Modified:
trunk/maven-debian-helper/debian/changelog
trunk/maven-debian-helper/share/maven-debian-helper/copy-repo.sh
Log:
Set version for non plugins to '[$version]' instead of '$version' only.
Modified: trunk/maven-debian-helper/debian/changelog
===================================================================
--- trunk/maven-debian-helper/debian/changelog 2009-01-25 21:57:57 UTC (rev 7886)
+++ trunk/maven-debian-helper/debian/changelog 2009-01-25 22:19:03 UTC (rev 7887)
@@ -3,8 +3,9 @@
UNRELEASED
* Implement better exception handling.
* Create our own maven repository during build time.
+ * Set version for non plugins to '[$version]' instead of '$version' only.
- -- Torsten Werner <twerner at debian.org> Sun, 25 Jan 2009 20:33:10 +0100
+ -- Torsten Werner <twerner at debian.org> Sun, 25 Jan 2009 23:16:20 +0100
maven-debian-helper (0.2) unstable; urgency=low
Modified: trunk/maven-debian-helper/share/maven-debian-helper/copy-repo.sh
===================================================================
--- trunk/maven-debian-helper/share/maven-debian-helper/copy-repo.sh 2009-01-25 21:57:57 UTC (rev 7886)
+++ trunk/maven-debian-helper/share/maven-debian-helper/copy-repo.sh 2009-01-25 22:19:03 UTC (rev 7887)
@@ -9,6 +9,20 @@
find $SRC_REPO -name '*.pom' -printf '%P\n'
}
+echo_property() {
+ KEY=$(echo $BASE_DIR | tr / .)
+ case "$KEY" in
+ *.maven-*-plugin|*-maven-plugin)
+ echo "$KEY.version = $VERSION"
+ return
+ ;;
+ *)
+ echo "$KEY.version = [$VERSION]"
+ return
+ ;;
+ esac
+}
+
find_all_meta() {
find $DEST_REPO -name 'maven-metadata-tmp.xml'
}
@@ -48,13 +62,12 @@
VER_TAG=" <version>$VERSION</version>"
echo "$VER_TAG" >> $DEST_REPO/$BASE_DIR/maven-metadata-tmp.xml
- KEY=$(echo $BASE_DIR | tr / .)
- echo "$KEY.version = $VERSION"
+ echo_property
done > $1/auto.properties
find_all_meta | while read META; do
DIR=$(dirname $META)
- echo_meta > $DIR/maven-metadata.xml
+ echo_meta > $DIR/maven-metadata-local.xml
rm -f $META
done
More information about the pkg-java-commits
mailing list