summaryrefslogtreecommitdiffstats
path: root/maven/tests/pom.sh
blob: c7ca6f428ff121a37daba709d52c3575f8760ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ $# -ne 2 ]
then
  echo "usage: pom.in version" 1>&2
  exit 1
fi

POM_IN="$1"
shift
VERSION="$1"
shift

if [ -z "${REPOSITORY_URL}" ]
then
  echo "REPOSITORY_URL is unset" 1>&2
  exit 1
fi

exec m4 \
  -DJOGAMP_VERSION="${VERSION}" -DREPOSITORY_URL="${REPOSITORY_URL}" < "${POM_IN}"