aboutsummaryrefslogtreecommitdiff
path: root/install-win32/getgui
blob: 03f68a8697753c95d24bb19ec9abdabec01cc26d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Get and sign the OpenVPN GUI

# load version.nsi definitions
. autodefs/defs.sh

GUI="$OPENVPN_GUI_DIR/$OPENVPN_GUI"

if [ -e "$GUI" ]; then
    mkdir -p $GENOUT/bin &>/dev/null    
    cp $GUI $GENOUT/bin
    if [ -d "$SIGNTOOL" ]; then
	TARGET_EXE="$GENOUT/bin/$OPENVPN_GUI" $SIGNTOOL/signexe
    fi
fi

if [ -e "$GENOUT/bin/$OPENVPN_GUI" ]; then
    echo '!define OPENVPN_GUI_DEFINED' >autodefs/guidefs.nsi
else
    cat /dev/null >autodefs/guidefs.nsi
fi