hostap/build_nsis.sh
2008-12-20 20:40:23 +02:00

16 lines
305 B
Bash
Executable file

#!/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