summaryrefslogtreecommitdiffstats
path: root/maven/make-poms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'maven/make-poms.sh')
-rwxr-xr-xmaven/make-poms.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/maven/make-poms.sh b/maven/make-poms.sh
new file mode 100755
index 0000000..25b29cd
--- /dev/null
+++ b/maven/make-poms.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]
+then
+ echo "make-poms: usage: version" 1>&2
+ exit 1
+fi
+
+VERSION="$1"
+shift
+
+PROJECTS=`cat make-projects.txt | awk -F: '{print $1}'` || exit 1
+
+for PROJECT in ${PROJECTS}
+do
+ echo "make-poms: info: generating pom for ${PROJECT}" 1>&2
+ "./${PROJECT}.pom.sh" "${VERSION}" > "${PROJECT}.pom.tmp" || exit 1
+ mv "${PROJECT}.pom.tmp" "${PROJECT}.pom" || exit 1
+done
+