Update changes file and submitted to OBS
[framework/connectivity/wpasupplicant.git] / build_nsis.sh
1 #!/bin/sh
2
3 if [ -d nsis.in ]; then
4         /bin/rm -r nsis.in
5 fi
6
7 unzip -j -d nsis.in $1
8 VER=`echo $1 | sed "s/.*wpa_supplicant-windows-bin-\(.*\).zip/\1/"`
9
10 cat wpa_supplicant/wpa_supplicant.nsi |
11         sed "s/@WPAVER@/$VER/g" \
12         > nsis.in/wpa_supplicant.nsi
13
14 makensis nsis.in/wpa_supplicant.nsi
15
16 /bin/rm -r nsis.in