<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,34 +1,29 @@
-@set GNUWIN_DIR=C:\Program Files\Gnuwin32
-
-@rem (WoW64 cmd prompt sets PROCESSOR_ARCHITECTURE to x86) [taken from msys-bat --daniel]
-@if not &quot;x%PROCESSOR_ARCHITECTURE%&quot; == &quot;xAMD64&quot; goto _NotX64
-@set GNUWIN_DIR=C:\Program Files (x86)\Gnuwin32
-:_NotX64
-
-@if not exist &quot;%GNUWIN_DIR%\bin\bison.exe&quot; GOTO need_gnuwin
-@if not exist &quot;%GNUWIN_DIR%\bin\flex.exe&quot; GOTO need_gnuwin
-
-PATH=\msys\1.0\mingw\bin;\MinGW\bin\;%GNUWIN_DIR%\bin;%PATH%
-REM ---------- NetHack ----------
-del /S /Q nethack\win\vultures
-mkdir nethack\win\vultures
-xcopy /E /-Y vultures\* nethack\win\vultures\
-cd nethack\sys\winnt
-call nhsetup
-cd ..\..\src
-mingw32-make -f Makefile.gcc spotless
-mingw32-make -f Makefile.gcc all
-cd ..\..
-strip --strip-all nethack\binary\VulturesEye.exe
-
-goto EOF
-
-:need_gnuwin
-@echo.
-@echo You need flex and bison to build vultures. 
-@echo A good place to get them is the gnuwin project
-@echo see http://gnuwin32.sourceforge.net/
-@echo.
-
-
-:EOF
+@which bison
+@IF ERRORLEVEL 1 GOTO need_gnuwin
+@which flex
+@if ERRORLEVEL 1 GOTO need_gnuwin
+
+REM ---------- NetHack ----------
+del /S /Q nethack\win\vultures
+mkdir nethack\win\vultures
+xcopy /E /-Y vultures\* nethack\win\vultures\
+cd nethack\sys\winnt
+call nhsetup
+cd ..\..\src
+mingw32-make -f Makefile.gcc spotless
+mingw32-make -f Makefile.gcc all
+cd ..\..
+strip --strip-all nethack\binary\VulturesEye.exe
+
+goto EOF
+
+:need_gnuwin
+@echo.
+@echo You need flex and bison to build vultures. 
+@echo A good place to get them is the gnuwin project
+@echo see http://gnuwin32.sourceforge.net/
+@echo.
+@echo Be sure to use the gnuwin32 prompt for correct paths
+@echo.
+
+:EOF</diff>
      <filename>mingw-make-nethack.bat</filename>
    </modified>
    <modified>
      <diff>@@ -1,34 +1,30 @@
-@set GNUWIN_DIR=C:\Program Files\Gnuwin32
-
-@rem (WoW64 cmd prompt sets PROCESSOR_ARCHITECTURE to x86) [taken from msys-bat --daniel]
-@if not &quot;x%PROCESSOR_ARCHITECTURE%&quot; == &quot;xAMD64&quot; goto _NotX64
-@set GNUWIN_DIR=C:\Program Files (x86)\Gnuwin32
-:_NotX64
-
-@if not exist &quot;%GNUWIN_DIR%\bin\bison.exe&quot; GOTO need_gnuwin
-@if not exist &quot;%GNUWIN_DIR%\bin\flex.exe&quot; GOTO need_gnuwin
-
-PATH=\msys\1.0\mingw\bin;\MinGW\bin\;%GNUWIN_DIR%\bin;%PATH%
-REM ---------- SLASH'EM ----------
-del /S /Q slashem\win\vultures
-mkdir slashem\win\vultures
-xcopy /E /-Y vultures\* slashem\win\vultures\
-cd slashem\sys\winnt
-call nhsetup
-cd ..\..\src
-mingw32-make -f Makefile.gcc spotless
-mingw32-make -f Makefile.gcc all
-cd ..\..
-strip --strip-all slashem\binary\VulturesClaw.exe
-goto EOF
-
-
-:need_gnuwin
-@echo.
-@echo You need flex and bison to build vultures. 
-@echo A good place to get them is the gnuwin project
-@echo see http://gnuwin32.sourceforge.net/
-@echo.
-
-
-:EOF
+@which bison
+@IF ERRORLEVEL 1 GOTO need_gnuwin
+@which flex
+@if ERRORLEVEL 1 GOTO need_gnuwin
+
+REM ---------- Slash'EM ----------
+del /S /Q slashem\win\vultures
+mkdir slashem\win\vultures
+xcopy /E /-Y vultures\* slashem\win\vultures\
+cd slashem\sys\winnt
+call nhsetup
+cd ..\..\src
+mingw32-make -f Makefile.gcc spotless
+mingw32-make -f Makefile.gcc all
+cd ..\..
+strip --strip-all slashem\binary\VulturesClaw.exe
+
+goto EOF
+
+:need_gnuwin
+@echo.
+@echo You need flex and bison to build vultures. 
+@echo A good place to get them is the gnuwin project
+@echo see http://gnuwin32.sourceforge.net/
+@echo.
+@echo Be sure to use the gnuwin32 prompt for correct paths
+@echo.
+
+
+:EOF</diff>
      <filename>mingw-make-slashem.bat</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>152e7c5b68bba29b37ebc0c6bd50b7525c5b1e76</id>
    </parent>
  </parents>
  <author>
    <name>Clive Crous</name>
    <email>clive@crous.co.za</email>
  </author>
  <url>http://github.com/clivecrous/vultures/commit/6d1ca7f7d2901a179e02e7023c848c8eee9836b5</url>
  <id>6d1ca7f7d2901a179e02e7023c848c8eee9836b5</id>
  <committed-date>2008-07-15T16:39:07-07:00</committed-date>
  <authored-date>2008-07-15T16:39:07-07:00</authored-date>
  <message>Correct gnuwin32 usage</message>
  <tree>3f81dc10ee5a92bed152c8327979633a19347f5c</tree>
  <committer>
    <name>Clive Crous</name>
    <email>clive@crous.co.za</email>
  </committer>
</commit>
