summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:33 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:33 +0000
commitb8b2265b4bd031489fd6746ac9c1904fcb08ec93 (patch)
tree7def85d746c0471fa82d3e22b90ecc245381e5d0
parent1be205f984bc3732f3f7498e2768cac49883c989 (diff)
downloadpdf-over-b8b2265b4bd031489fd6746ac9c1904fcb08ec93.tar.gz
pdf-over-b8b2265b4bd031489fd6746ac9c1904fcb08ec93.tar.bz2
pdf-over-b8b2265b4bd031489fd6746ac9c1904fcb08ec93.zip
+ added jnlp template
+ publish bash script git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12689 3a0b52a2-8410-0410-bc02-ff6273a87459
-rw-r--r--trunk/pdf-over-gui/src/main/jnlp/pdfover.jnlp62
-rwxr-xr-xtrunk/publish.sh65
2 files changed, 127 insertions, 0 deletions
diff --git a/trunk/pdf-over-gui/src/main/jnlp/pdfover.jnlp b/trunk/pdf-over-gui/src/main/jnlp/pdfover.jnlp
new file mode 100644
index 00000000..b098cd93
--- /dev/null
+++ b/trunk/pdf-over-gui/src/main/jnlp/pdfover.jnlp
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp spec="1.0+" codebase="##CODEBASE_URL##" context="##CODEBASE_URL##" href="pdfover.jnlp">
+
+ <information>
+ <title>PDFOver</title>
+ <vendor>Secure Information Technology Center - Austria (A-SIT)</vendor>
+ <homepage href="##HOMEPAGE_URL##"/>
+ <description>PDFOver - PDF Signaturtool</description>
+ <description kind="short">PDFOver</description>
+ <offline-allowed/>
+ </information>
+
+ <security>
+ <all-permissions/>
+ </security>
+
+ <update check="timeout" policy="prompt-update"/>
+
+ <resources os="Linux" arch="x86">
+ <java version="1.6+" java-vm-args="-d32"/>
+ <jar href="setup_pdfover_linux_x86.jar" main="true"/>
+ </resources>
+ <resources os="Linux" arch="x86_64">
+ <java version="1.6+"/>
+ <jar href="setup_pdfover_linux_x64.jar" main="true"/>
+ </resources>
+ <resources os="Linux" arch="amd64">
+ <java version="1.6+"/>
+ <jar href="setup_pdfover_linux_x64.jar" main="true"/>
+ </resources>
+ <resources os="Windows" arch="x86">
+ <java version="1.6+" java-vm-args="-d32"/>
+ <jar href="setup_pdfover_windows_x86.jar" main="true"/>
+ </resources>
+
+ <resources os="Windows" arch="x86_64">
+ <java version="1.6+"/>
+ <jar href="setup_pdfover_windows_x64.jar" main="true"/>
+ </resources>
+
+ <resources os="Windows" arch="amd64">
+ <java version="1.6+"/>
+ <jar href="setup_pdfover_windows_x64.jar" main="true"/>
+ </resources>
+
+ <resources os="Mac OS X" arch="x86">
+ <java version="1.6+" java-vm-args="-d32"/>
+ <jar href="setup_pdfover_mac_x86.jar" main="true"/>
+ </resources>
+
+ <resources os="Mac OS X" arch="x86_64">
+ <java version="1.6+"/>
+ <jar href="setup_pdfover_mac_x64.jar" main="true"/>
+ </resources>
+
+ <resources os="Mac OS X" arch="amd64">
+ <java version="1.6+"/>
+ <jar href="setup_pdfover_mac_x64.jar" main="true"/>
+ </resources>
+
+ <application-desc main-class="com.izforge.izpack.installer.Installer"/>
+</jnlp> \ No newline at end of file
diff --git a/trunk/publish.sh b/trunk/publish.sh
new file mode 100755
index 00000000..0311caa8
--- /dev/null
+++ b/trunk/publish.sh
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+#### CONFIGURE: ######
+PUBLISH_DIR="pub"
+LOG_DIR="log"
+VERSION="4.0.0-SNAPSHOT"
+CODEBASE_URL="http:\/\/10.27.152.123\/pdfover\/"
+HOMEPAGE_URL="http:\/\/www.buergerkarte.at"
+
+
+#### DON'T CONFIGURE ####
+
+TARGET_FILE="pdf-over-gui-$VERSION-standard.jar"
+
+echo "Publishing to: $PUBLISH_DIR"
+
+mkdir -p $PUBLISH_DIR
+mkdir -p $LOG_DIR
+
+profiles=( linux linux-64 windows windows-64 mac mac-64 )
+names=( linux_x86 linux_x64 windows_x86 windows_x64 mac_x86 mac_x64 )
+
+for (( i = 0 ; i < ${#names[@]} ; i++ )) do
+ PROFILE=${profiles[$i]}
+ NAME=${names[$i]}
+ INSTALLER=setup_pdfover_$NAME.jar
+ echo -n "Building package [$PROFILE] as $INSTALLER ... "
+ mvn install -P$PROFILE > $LOG_DIR/build_$NAME.log 2>&1
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && echo "[OK]"
+ [ $RETVAL -ne 0 ] && echo "[!FAILED!]" && continue
+
+ echo -n "Moving Installer ... "
+ mv ./pdf-over-gui/target/$TARGET_FILE $PUBLISH_DIR/$INSTALLER
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && echo "[OK]"
+ [ $RETVAL -ne 0 ] && echo "[!FAILED!]"
+done
+
+echo -n "Building JNLP ... "
+
+cp ./pdf-over-gui/src/main/jnlp/pdfover.jnlp $PUBLISH_DIR/pdfover.jnlp
+RETVAL=$?
+if [ $RETVAL -ne 0 ]; then
+ echo "[!FAILED!]"
+else
+ sed -i "s/##CODEBASE_URL##/$CODEBASE_URL/g" $PUBLISH_DIR/pdfover.jnlp
+ RETVAL=$?
+ if [ $RETVAL -ne 0 ]; then
+ echo "[!FAILED!]"
+ else
+ sed -i "s/##HOMEPAGE_URL##/$HOMEPAGE_URL/g" $PUBLISH_DIR/pdfover.jnlp
+ RETVAL=$?
+ if [ $RETVAL -ne 0 ]; then
+ echo "[!FAILED!]"
+ else
+ [ $RETVAL -eq 0 ] && echo "[OK]"
+ fi
+ fi
+fi
+
+
+
+
+