summaryrefslogtreecommitdiffstats
path: root/maven/make-copy-jars.sh
blob: 03927daee3cfd2321835ec9463e2110a4361c959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

info()
{
  echo "make-copy-jars: info: $1" 1>&2
}

if [ $# -ne 1 ]
then
  info "usage: version"
  exit 1
fi

VERSION="$1"
shift

INPUT="input/jogamp-all-platforms"

if [ ! -d "${INPUT}" ]
then
  echo "make-copy-jars: error: ${INPUT} is not an existing directory" 1>&2
  echo "make-copy-jars: error: unpack jogamp-all-platforms.7z into 'input'" 1>&2
  exit 1
fi

PROJECTS=`ls projects` || exit 1
PLATFORMS=`cat make-platforms.txt | awk '{print $1}'` || exit 1

for PROJECT in ${PROJECTS}
do
  ./make-copy-jars-one.sh "${PROJECT}" "${VERSION}" || exit 1
done