-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavacAll
48 lines (46 loc) · 2.77 KB
/
javacAll
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
#! /bin/bash -x
set -e
# -target 1.1
# cd src
# javac -target 1.1 -deprecation View5D_.java
# javac -target 1.5 -source 1.5 -deprecation -classpath ".:/usr/local/ImageJ/ij.jar" view5d/View5D_.java view5d/View5D.java # -target 1.4 -source 1.2
# javac -target 1.6 -source 1.6 -deprecation -classpath ".:/usr/local/ImageJ/ij.jar" view5d/View5D_.java view5d/View5D.java # -target 1.4 -source 1.2
# javac -target 1.6 -source 1.6 -deprecation -classpath ".:/usr/share/java/ij.jar" view5d/View5D_.java view5d/View5D.java # -target 1.4 -source 1.2
# jar -cf /tmp/View5D_.jar view5d/*.class plugins.config
mvn clean package
myjar=$(find target -name '*.jar' | grep -v sources | grep -v javadoc)
cp "$myjar" ../../PythonScripts/FromWeb/nanoimagingpack/NanoImagingPack/resources/
cp "$myjar" "/mnt/c/NoBackup/DeconvCompileTest/DIPlib_3_2017/share/DIPimage/private/View5D.jar"
cp "$myjar" "/mnt/c/NoBackup/DeconvCompileTest/DIPlib_3_2019/share/DIPimage/private/View5D.jar"
cp "$myjar" "../View5D.jar"
cp "$myjar" "/mnt/c/Users/pi96doc/.julia/artifacts/View5D.jar"
# cp "$myjar" "/mnt/c/Program Files/DIPimage 2.9/common/dipimage/private/View5D.jar"
# cp "$myjar" "/mnt/c/Program Files/DIPlib_3_2019/share/DIPimage/private/View5D.jar"
cp "$myjar" "/mnt/c/NoBackup/DeconvCompileTest/DIPlib_3_2019/share/DIPimage/private/View5D.jar"
cp "$myjar" "/mnt/c/NoBackup/DeconvCompileTest/DIPlib_3_2017/share/DIPimage/private/View5D.jar"
cp "$myjar" "/mnt/c/Users/pi96doc/Desktop/UserPrograms/fiji-win64/Fiji.app/plugins/"
cd target
totar=$(find -name '*.jar' | grep -v sources | grep -v javadoc)
tar -czf "${totar%.jar}-jar.tar.gz" "$totar"
echo "${totar%.jar}.jar.tar.gz"
# cp /*.class /usr/local/ImageJ/plugins/View5D/
#cp View5D_.jar /usr/local/ImageJ/plugins/View5D/
# cp View5D_.jar /windows/C/DriveF/JavaProgs/ImageJ/plugins/View5D/
#cp View5D_.jar /windows/D/JavaProgs/ImageJ/plugins/View5D/View5D.jar
#cp View5D_.jar /usr/local/KhorosInstall/goodies/data/display/View5D.jar
#cp View5D_.jar /usr/local/matlab/java/jar/toolbox/View5D.jar
#cp View5D_.jar /usr/local/dip/common/dipimage/private/View5D.jar
#cp View5D_.jar ../examples/View5D.jar
#cp View5D_.jar ..
#rm View5D_.jar
#cd ..
#zip -r View5D.zip View5D_.jar view5d.m *.html *.jpg *.m *.policy examples COPYING src/plugins.config
#zip -r View5DSources.zip view5d.m src/*.java src/view5d/*.java COPYING javacImageJ Makefile *.m src/plugins.config
#
#cp View5D.html /usr/local/ImageJ/plugins/View5D/index.html
#cp *.html /usr/local/ImageJ/plugins/View5D/
#cp -r examples/* /usr/local/ImageJ/plugins/View5D/examples/
# cp *.class /net/mobi1/data1/WinApps/ImageJ/plugins/View5D/
# cp View5D.html /net/mobi1/data1/WinApps/ImageJ/plugins/View5D/index.html
# cp -r examples /net/mobi1/data1/WinApps/ImageJ/plugins/View5D/
# cp *.class /net/mobi1/data1/MacOSX_local/ImageJ/plugins/View5D/