[pkg-java] r7886 - trunk/maven-debian-helper/share/maven-debian-helper
twerner at alioth.debian.org
twerner at alioth.debian.org
Sun Jan 25 21:57:57 UTC 2009
Author: twerner
Date: 2009-01-25 21:57:57 +0000 (Sun, 25 Jan 2009)
New Revision: 7886
Modified:
trunk/maven-debian-helper/share/maven-debian-helper/copy-repo.sh
Log:
refactoring
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:37:56 UTC (rev 7885)
+++ trunk/maven-debian-helper/share/maven-debian-helper/copy-repo.sh 2009-01-25 21:57:57 UTC (rev 7886)
@@ -39,12 +39,18 @@
find_all_poms | while read POM; do
VER_DIR=$(dirname $POM)
- VER_TAG=" <version>$(basename $VER_DIR)</version>"
+ VERSION=$(basename $VER_DIR)
BASE_DIR=$(dirname $VER_DIR)
+
mkdir -p $DEST_REPO/$BASE_DIR
ln -s $SRC_REPO/$VER_DIR $DEST_REPO/$BASE_DIR/
+
+ VER_TAG=" <version>$VERSION</version>"
echo "$VER_TAG" >> $DEST_REPO/$BASE_DIR/maven-metadata-tmp.xml
-done
+
+ KEY=$(echo $BASE_DIR | tr / .)
+ echo "$KEY.version = $VERSION"
+done > $1/auto.properties
find_all_meta | while read META; do
DIR=$(dirname $META)
@@ -52,7 +58,3 @@
rm -f $META
done
-find -L $DEST_REPO -name "*.pom" | \
- sed -e"s,^$DEST_REPO/,," \
- -e"s,/\([0-9][^/]*\).*,.version = \1," \
- -e"s,/,.,g" > $1/auto.properties
More information about the pkg-java-commits
mailing list