3 WINLOCAL
=/home
/jm
/H-win
/local
8 echo "build_release <version> [nobin]"
17 echo "Version: $VER - $NOW"
19 DATEw
=`head -n 3 wpa_supplicant/ChangeLog | tail -n 1 | sed "s/ .*//"`
20 DATEh
=`head -n 3 hostapd/ChangeLog | tail -n 1 | sed "s/ .*//"`
22 if [ "$DATEw" != "$NOW" -o "$DATEh" != "$NOW" ]; then
23 echo "NOTE! Date mismatch in ChangeLog: wpa_supplicant $DATEw hostapd $DATEh != $NOW"
27 echo "Temporary directory '$TMP' exists. Remove it before running this."
34 git archive
--format=tar --prefix=wpa-
$VER/ HEAD \
35 README COPYING patches src wpa_supplicant hostapd |
36 gzip > $RELDIR/wpa-
$VER.
tar.gz
37 git archive
--format=tar --prefix=hostapd-
$VER/ HEAD \
38 README COPYING patches src hostapd |
39 gzip > $RELDIR/hostapd-
$VER.
tar.gz
40 git archive
--format=tar --prefix=wpa_supplicant-
$VER/ HEAD \
41 README COPYING patches src wpa_supplicant hostapd
/*.
[ch
] |
42 tar --directory=$TMP -xf -
45 make -C wpa_supplicant-
$VER/wpa_supplicant
/doc
/docbook man
46 rm -f wpa_supplicant-
$VER/wpa_supplicant
/doc
/docbook
/manpage.
{links
,refs
}
47 tar czf
$RELDIR/wpa_supplicant-
$VER.
tar.gz wpa_supplicant-
$VER
51 if [ "$2" = "nobin" ]; then
58 PDIR
=wpa_supplicant-
$VER
59 WDIR
=wpa_supplicant-windows-bin-
$VER
62 cd "$PDIR/wpa_supplicant"
65 CONFIG_NATIVE_WINDOWS=y
67 CC=i586-mingw32msvc-gcc
68 STRIP=i586-mingw32msvc-strip
69 PLATFORMSDKLIB=$WINLOCAL/lib
70 CONFIG_NDIS_EVENTS_INTEGRATED=y
72 CFLAGS += -I$WINLOCAL/include
73 LIBS += -L$WINLOCAL/lib
74 LIBS_w += -L$WINLOCAL/lib
75 LIBS_p += -L$WINLOCAL/lib
78 CONFIG_SIM_SIMULATOR=y
80 CONFIG_USIM_SIMULATOR=y
101 CONFIG_L2_PACKET=winpcap
102 CONFIG_MAIN=main_winsvc
103 CONFIG_BACKEND=winreg
104 CONFIG_ELOOP=eloop_win
105 CFLAGS += -DCONFIG_DEBUG_FILE
108 # First, build the Windows service & registry version and rename it
110 mv wpa_supplicant.exe wpasvc.exe
112 # Then, build "the standard" wpa_supplicant.exe
121 unix2dos
< ..
/$i > ..
/..
/"$WDIR"/$i
123 for i
in README README-Windows.txt wpa_supplicant.conf
; do
124 unix2dos
< $i > ..
/..
/"$WDIR"/$i
126 mv *.exe ..
/..
/"$WDIR"
127 cp win_example.reg ..
/..
/"$WDIR"
131 qmake
-spec win32-x-g
++
133 cp release
/wpa_gui.exe ..
/..
/..
/"$WDIR"
136 zip "$WDIR.zip" "$WDIR"/*
141 .
/build_nsis.sh
"$RELDIR/$WDIR.zip"
142 mv wpa_supplicant-
$VER.exe
$RELDIR