[jackson-jr] 15/15: Drop replace-generate.sh

Markus Koschany apo at moszumanska.debian.org
Thu Oct 12 16:38:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository jackson-jr.

commit ec1a28990c8caf521eda75055e609608766705dc
Author: Markus Koschany <apo at debian.org>
Date:   Thu Oct 12 18:26:23 2017 +0200

    Drop replace-generate.sh
---
 debian/replace-generate.sh | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/debian/replace-generate.sh b/debian/replace-generate.sh
deleted file mode 100644
index e87bb49..0000000
--- a/debian/replace-generate.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-# Simple replacement for mavan-replacer-plugin
-
-set -e
-
-TARGET=$1; shift
-
-TEMPLATE=$TARGET.in
-
-get_attr() {
-    < pom.xml xmlstarlet sel \
-        -N pom=http://maven.apache.org/POM/4.0.0 \
-        -T -t -v $1
-}
-
-package=$(dirname $TARGET | sed -e 's,.*src/main/java/\(.*\)$,\1,' | tr / .)
-projectversion=$(get_attr '/pom:project/pom:version')
-projectgroupid=$(get_attr '/pom:project/pom:groupId')
-projectartifactid=$(get_attr '/pom:project/pom:artifactId')
-
-sed \
-    -e "s, at package@,$package,g" \
-    -e "s, at projectversion@,$projectversion,g" \
-    -e "s, at projectgroupid@,$projectgroupid,g" \
-    -e "s, at projectartifactid@,$projectartifactid,g" \
-    < $TEMPLATE > $TARGET.t
-
-if grep -i '@[a-z]*@' $TARGET.t >&2; then
-    echo 'Not all tags were
-    replaced' >&2 exit 1
-fi
-
-mv $TARGET.t $TARGET

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-jr.git



More information about the pkg-java-commits mailing list