forked from RaiMan/SikuliX-2014
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collectJars
executable file
·83 lines (73 loc) · 1.93 KB
/
collectJars
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh
mversion=1.1
version=$mversion.0
base=`pwd`
echo -
echo ---
echo ----- SikuliX collecting jars in $base
source=$base/Setup/target
dist=$base/../SikuliX-Setup
if [ -e $dist ]; then
rm -f -R $dist
fi
mkdir $dist
mkdir $dist/Downloads
log=$dist/collectjars-log.txt
echo --- version $version
echo --- major $mversion
echo --- version --- $version >>$log
echo --- major version --- $mversion >>$log
echo ----- SourceBase $base >>$log
if [ "$1" != "2" -a "$1" != "3" ]; then
echo ----------------- running Maven clean install --- takes some time ...
mvn clean install >>$log
buildok=`grep -cim1 "BUILD FAILURE" $log`
if [ "$buildok" == "1" ]; then
echo -
echo --
echo ----
echo ------
echo -------- BUILD ERROR -----------
echo at least one module had problems
echo check the logfile
echo $log
echo correct the problems and run again
echo ----------------------------------
exit
fi
fi
if [ "$1" != "3" ]; then
# ----------- Setup
echo ----- collecting jars
echo --- collecting jars >>$log
cd $source >>$log
java -jar sikulixsetup-$version-plain.jar noSetup >>$log
cd $base
ls -l $source >>$log
fi
# ----------- Setup
echo ----- copy Setup
echo --- copy Setup >>$log
cp $source/sikulixsetup*.jar $dist/sikulixsetup-$mversion.jar
ls -l $dist >>$log
# ----------- Jars
echo ----- copy Jars
echo --- copy Jars >>$log
cp $source/Downloads/* $dist/Downloads
ls -l $dist/Downloads >>$log
echo ----------- final content of $dist
ls -lR $dist
echo ----------- SikuliX collectjars end -----------
echo -
echo --
echo ----
echo ------
echo -------- Looks like success -----------
echo check the logfile to be sure
echo $log
echo Now you can move the folder to where you want
echo and name it as you like
echo and run setup, to get your wanted packages.
echo !! BE SURE, not to download anything !!
echo !! You are doing an offline setup !!
echo ---------------------------------------------