forked from tillnagel/unfolding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateLibrary.sh
More file actions
49 lines (33 loc) · 788 Bytes
/
createLibrary.sh
File metadata and controls
49 lines (33 loc) · 788 Bytes
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
#!/bin/bash
TMP=tmp
NAME=Unfolding
mkdir $TMP
mkdir $TMP/$NAME
mkdir $TMP/$NAME/library
mkdir $TMP/$NAME/reference
echo "Copy Library"
# Library
cp target/$NAME.jar $TMP/$NAME/library/$NAME.jar
echo "Copy the sources"
# copy the source also
cp -R src $TMP/$NAME/
cp -R data $TMP/$NAME/
cp -R lib-processing/* $TMP/$NAME/library/
cp -R test $TMP/$NAME/
# cp -R data $TMP/$NAME/
# Not really an external library. It is here until
# Processing is in Maven Central.
#rm $TMP/$NAME/lib/core.jar
echo "Copy the examples"
cp -R examples $TMP/$NAME/
cp -R pom.xml $TMP/$NAME/
echo "Copy the JavaDoc"
cp -R target/site/apidocs/* $TMP/$NAME/reference/
echo "Create the archive..."
cd $TMP
tar -zcf $NAME.tgz $NAME
mv $NAME.tgz ..
cd ..
echo "Clean "
rm -rf $TMP
echo "Creation OK"