summaryrefslogtreecommitdiffstats
path: root/make-poms.sh
blob: 25b29cdafeab0a4b0f6dfef535fb71d10aa2b540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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