blob: 1e2614024df482d0a6b6d008e42a20f2aa09f32a (
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
34
35
36
37
38
39
|
#! /bin/bash
# e.g. /srv/www/jogamp.org/deployment/archive/master/gluegen_950-joal_668-jogl_1514-jocl_1154/archive/jogamp-all-platforms.7z
archive=$1
shift
# e.g. 2.4.0-rc-20230123
version=$1
shift
if [ -z "${archive}" -o -z "${version}" ] ; then
echo "Usage $0 <full-path/jogamp-all-platforms.7z> <version>"
exit 1
fi
if [ ! -e ${archive} ] ; then
echo "Archive ${archive} not existing"
exit 1
fi
logfile=`basename $0 .sh`.log
function maven_it() {
echo "Using archive ${archive}"
echo "Using version ${version}"
echo "Using logfile ${logfile}"
rm -rf input
mkdir -p input
cd input
ln -s $archive .
7z x jogamp-all-platforms.7z
cd ..
./make.sh ${version} && ./make-deploy-jogamp2.sh ${version}
}
maven_it 2>&1 | tee ${logfile}
|