-
Notifications
You must be signed in to change notification settings - Fork 10
/
doc.sh
executable file
·40 lines (30 loc) · 1.1 KB
/
doc.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
#!/bin/sh
# generate documentation for the RWMidi project
########################################################
DOCLETPATH=./build/rwdoclet/rwdoclet.jar
javadoc -doclet com.ruinwesen.doclet.RWDoclet -docletpath "$DOCLETPATH" -sourcepath ./src rwmidi
cp src/documentation/RWMidi.html src/documentation/index.html
mkdir ./jar
mkdir ./jar/rwmidi
mkdir ./jar/rwmidi/library
cp ./jar/rwmidi.jar ./jar/rwmidi/library/
mv ./src/documentation ./jar/rwmidi/
#cp -r ./src/rwmidi/docuImages ./jar/rwmidi/documentation
#cp -r ./source/rwmidi/examples ./jar/oscP5/
########################################################
# distribution
########################################################
mkdir ./distribution
cp -r jar/rwmidi distribution
find ./distribution -name .DS_Store -ls -exec rm {} \;
find ./distribution -name .svn -ls -exec rm -rf {} \;
tar cvzf distribution/rwmidi.tgz distribution/rwmidi
cd distribution
zip -r rwmidi rwmidi
cd ..
find . -name .DS_Store -ls -exec rm {} \;
########################################################
# cleanup
#rm -rf jar/*
#mv distribution ../../c/
#rm -rf distribution/rwmidi