-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sh
executable file
·38 lines (32 loc) · 975 Bytes
/
build.sh
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
#!/bin/sh
#=================================================================
# BUILDING SCRIPT for COATJAVA PROJECT (first maven build)
# then the documentatoin is build from the sources and commited
# to the documents page
#=================================================================
# Maven Build
while getopts dm name
do
case $name in
d) dopt=1;; # -d option is for generating Javadoc
m) mopt=1;; # -s option is for compiling the code
*) echo "Invalid arg : "; echo "\t use : build.sh -m -d" ; echo "" ;exit;
esac
done
if [[ ! -z $mopt ]]
then
mvn install
cd coat-lib
mvn package
cp target/coat-libs-3.0-SNAPSHOT.jar $COATJAVA/lib/clas/
cd ..
fi
#=================================================================
# Documentation build
#=================================================================
# Finishing touches
echo ""
echo "--> Done building....."
echo ""
echo " \t Usage : build.sh -d -m"
echo ""