-
Notifications
You must be signed in to change notification settings - Fork 0
/
javacApplet
19 lines (19 loc) · 1.01 KB
/
javacApplet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/bash -x
set -e
cat src/view5d/View5D_.java | sed "s/public class View5D_/class View5D_/" | sed "s/class View5D /public class View5D /" | sed "s/ GenericDialog/ AGenericDialog/g" > /tmp/View5D.java
# | sed "s/import ij.*$//g"
javac -target 1.8 -deprecation /tmp/View5D.java -classpath ".:src/view5d/:/usr/local/ImageJ/ij.jar" # -Xlint:unchecked
mv /tmp/*.class .
jar -cf View5D.jar *.class ij
cp View5D.jar /usr/local/KhorosInstall/goodies/data/display/
cp View5D.jar /tmp/
cp View5D.jar /usr/local/matlab/java/jar/toolbox/View5D.jar
cp View5D.jar /usr/local/dip/toolbox/dipimage/private/View5D.jar
# cp View5D.jar /windows/C/Program\ Files/matlab/R2006a/java/jar/toolbox/
# cp View5D.jar /windows/C/Program\ Files/matlab/R2006b/java/jar/toolbox/
zip -r View5DApplet.zip *.class *.jar *.html *.jpg *.m *.policy examples/ COPYING
# ij/
rm /tmp/View5D.java
mv *.class *.jar examples/
# cp View5D.html /net/mobi1/data2/WinApps/ImageJ/plugins/View5D/index.html
# cp -r examples/ /net/mobi1/data2/WinApps/ImageJ/plugins/View5D/