aboutsummaryrefslogtreecommitdiff
path: root/install-win32/getxgui
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-03-10 10:02:20 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-03-10 10:02:20 +0000
commitcefe973e4ceca649a08749fb3c7f09ef09d2d145 (patch)
treeb280e66ca98b00de8337750b4cd3b1c9edb93579 /install-win32/getxgui
parentAdded new OpenVPN icon and installer graphic. (diff)
downloadopenvpn-cefe973e4ceca649a08749fb3c7f09ef09d2d145.tar.xz
First working version of XGUI inclusion.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2834 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--install-win32/getxgui34
1 files changed, 34 insertions, 0 deletions
diff --git a/install-win32/getxgui b/install-win32/getxgui
new file mode 100644
index 0000000..d3a21b8
--- /dev/null
+++ b/install-win32/getxgui
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Get and sign the OpenVPN XML-based GUI
+
+# load version.nsi definitions
+. autodefs/defs.sh
+
+if [ -d "$OPENVPN_XGUI_DIR" ]; then
+ SIGNED_EXES="gui/ovpn-xgui-en.exe sta/ovpn-tray.exe"
+ UNSIGNED_EXES="xmlserv/ovpn-xmlserv.exe"
+ EXES="$SIGNED_EXES $UNSIGNED_EXES"
+
+ mkdir -p $GENOUT/bin &>/dev/null
+
+ if [ -z "$NO_STRIP" ]; then
+ for f in $EXES; do
+ cp $OPENVPN_XGUI_DIR/$f $GENOUT/bin
+ strip $GENOUT/bin/`basename $f`
+ done
+ fi
+
+ for f in $SIGNED_EXES; do
+ if [ -d "$SIGNTOOL" ]; then
+ TARGET_EXE="$GENOUT/bin/`basename $f`" $SIGNTOOL/signexe
+ fi
+ done
+
+ rm -rf $GENOUT/htdocs
+ cp -a $OPENVPN_XGUI_DIR/ajax/htdocs $GENOUT/htdocs
+
+ echo '!define OPENVPN_XGUI_DEFINED' >autodefs/xguidefs.nsi
+else
+ cat /dev/null >autodefs/xguidefs.nsi
+fi