aboutsummaryrefslogtreecommitdiffstats
path: root/build_nsis.sh
diff options
context:
space:
mode:
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