aboutsummaryrefslogtreecommitdiffstats
path: root/build_nsis.sh
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-20 18:40:23 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-20 18:40:23 (GMT)
commit798afa8162c1c62d1b32a1bf6235144ce3639d15 (patch)
tree4adbd5545e77e9350628731229422ca270d84cd0 /build_nsis.sh
parent36cb321611b557ff2e3a9fa49513e2341f4028cc (diff)
downloadhostap-798afa8162c1c62d1b32a1bf6235144ce3639d15.zip
hostap-798afa8162c1c62d1b32a1bf6235144ce3639d15.tar.gz
hostap-798afa8162c1c62d1b32a1bf6235144ce3639d15.tar.bz2
Added Windows NSIS installer for wpa_supplicant
Diffstat (limited to 'build_nsis.sh')
-rwxr-xr-xbuild_nsis.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build_nsis.sh b/build_nsis.sh
new file mode 100755
index 0000000..e41bc36
--- /dev/null
+++ b/build_nsis.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ -d nsis.in ]; then
+ /bin/rm -r nsis.in
+fi
+
+unzip -j -d nsis.in $1
+VER=`echo $1 | sed "s/.*wpa_supplicant-windows-bin-\(.*\).zip/\1/"`
+
+cat wpa_supplicant/wpa_supplicant.nsi |
+ sed "s/@WPAVER@/$VER/g" \
+ > nsis.in/wpa_supplicant.nsi
+
+makensis nsis.in/wpa_supplicant.nsi
+
+/bin/rm -r nsis.in