Added runnable jar file to the web site
[sixth-3d-demos.git] / tools / update web site
index 6136ba4..7442ab6 100755 (executable)
@@ -1,17 +1,21 @@
 #!/bin/bash
-cd "${0%/*}"
-cd ..
+cd "${0%/*}"; if [ "$1" != "T" ]; then gnome-terminal -e "'$0' T"; exit; fi;
 
+cd ..
 
+# build application and javadoc
 mvn clean package
 
-#rm -rf doc/graphs/
-#mkdir -p doc/graphs/
+# copy generated javadoc for publishing on website
+rm -rf doc/apidocs/
+cp -r target/apidocs/ doc/
 
-#javainspect -j target/sixth-3d-*-SNAPSHOT.jar -d doc/graphs/ -n "all classes" -t png -h
-#javainspect -j target/sixth-3d-*-SNAPSHOT.jar -d doc/graphs/ -n "GUI" -t png -w "eu.svjatoslav.sixth.e3d.gui.*" -h
-#javainspect -j target/sixth-3d-*-SNAPSHOT.jar -d doc/graphs/ -n "raster engine" -t png -w "eu.svjatoslav.sixth.e3d.renderer.raster.*" -h
-
-#meviz index -w doc/graphs/ -t "Sixth 3D classes"
+# copy runnable jar file for publishing on website
+cp target/sixth-3d-demos.jar doc/
 
+# deploy generated project homepage to server
 rsync -avz --delete  -e 'ssh -p 10006' doc/ n0@www3.svjatoslav.eu:/mnt/big/projects/sixth-3d-demos/
+
+echo ""
+echo "Press ENTER to close this window."
+read