-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathcreateRedist.sh
executable file
·53 lines (40 loc) · 1.06 KB
/
createRedist.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
TMP=tmp
NAME=PapARt
VERSION=$1
## NAME must match
## fr.inria.papart.procam.Utils.LibraryName = "PapARt"
mkdir $TMP
mkdir $TMP/$NAME
mkdir $TMP/$NAME/library
mkdir $TMP/$NAME/examples
echo "Copy Library"
# Library
cp papart/target/$NAME.jar $TMP/$NAME/library/$NAME.jar
cp deps/jama.jar $TMP/$NAME/library/
cp deps/pca_transform.jar $TMP/$NAME/library/
cp deps/jedis-3.1.0.jar $TMP/$NAME/library/
cp deps/commons-pool2-2.2.jar $TMP/$NAME/library/
cp deps/ColorConverter.jar $TMP/$NAME/library/
echo "Copy the sources"
# copy the source also
cp -R papart/src $TMP/$NAME/
cp -R papart/pom.xml $TMP/$NAME/
# cp -R papart/test $TMP/$NAME/
echo "Copy the JavaDoc"
cp -R papart/target/site/apidocs $TMP/$NAME/
echo "Copy the Data"
cp -R papart/data $TMP/$NAME/
if [ -n "$2" ] ; then
echo "Copy the examples"
cp -R ../Papart-examples $TMP/$NAME/examples/
# cp -R Papart-examples/apps $TMP/$NAME/examples/
fi
echo "Create the archive..."
cd $TMP
tar -zcf $NAME-$VERSION.tgz $NAME
mv $NAME-$VERSION.tgz ..
cd ..
echo "Clean "
rm -rf $TMP
echo "Creation OK"