aboutsummaryrefslogtreecommitdiffstats
path: root/build_nsis.sh
blob: e41bc362ccf2e48f7fabf600f193d373f65679fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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