:do_win
set opt=Graphical NetHack for Windows
if not exist ..\..\win\win32\winnt.dsw goto err_win
-echo "Copying Visual C project files to ..\..\winhacknt directory"
-if NOT exist ..\..\winhacknt\*.* mkdir ..\..\winhacknt
+
+echo.
+echo "Copying Visual C project files file to ..\..\build directory"
+
REM copy ..\..\win\win32\winnt.dsw ..\.. >nul
-copy ..\..\win\win32\nethack.dsw ..\.. >nul
-copy ..\..\win\win32\dgncomp.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\dgnstuff.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\dgnstuff.mak ..\..\winhacknt >nul
-copy ..\..\win\win32\dlb_main.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\levcomp.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\levstuff.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\levstuff.mak ..\..\winhacknt >nul
-copy ..\..\win\win32\makedefs.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\mhaskyn.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhaskyn.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhcmd.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhcmd.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhdlg.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhdlg.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhfont.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhfont.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhinput.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhinput.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmain.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmain.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmap.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmap.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmenu.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmenu.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmsg.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmsgwnd.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhmsgwnd.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhrip.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhrip.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhstatus.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhstatus.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mhtext.c ..\..\winhacknt >nul
-copy ..\..\win\win32\mhtext.h ..\..\winhacknt >nul
-copy ..\..\win\win32\mswproc.c ..\..\winhacknt >nul
-copy ..\..\win\win32\recover.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\resource.h ..\..\winhacknt >nul
-copy ..\..\win\win32\tile2bmp.c ..\..\winhacknt >nul
-copy ..\..\win\win32\tile2bmp.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\tilemap.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\winMS.h ..\..\winhacknt >nul
-copy ..\..\win\win32\winhack.c ..\..\winhacknt >nul
-copy ..\..\win\win32\winhack.dsp ..\..\winhacknt >nul
-copy ..\..\win\win32\winhack.h ..\..\winhacknt >nul
-copy ..\..\win\win32\winhack.rc ..\..\winhacknt >nul
-
-if exist ..\..\winhacknt\mnsel.bmp goto hasmnsel2
+echo copy ..\..\win\win32\nethack.dsw ..\..
+copy ..\..\win\win32\nethack.dsw ..\..
+
+if NOT exist ..\..\build\*.* mkdir ..\..\build >nul
+copy ..\..\win\win32\dgncomp.dsp ..\..\build >nul
+copy ..\..\win\win32\dgnstuff.dsp ..\..\build >nul
+copy ..\..\win\win32\dgnstuff.mak ..\..\build >nul
+copy ..\..\win\win32\dlb_main.dsp ..\..\build >nul
+copy ..\..\win\win32\levcomp.dsp ..\..\build >nul
+copy ..\..\win\win32\levstuff.dsp ..\..\build >nul
+copy ..\..\win\win32\levstuff.mak ..\..\build >nul
+copy ..\..\win\win32\makedefs.dsp ..\..\build >nul
+copy ..\..\win\win32\recover.dsp ..\..\build >nul
+copy ..\..\win\win32\tile2bmp.dsp ..\..\build >nul
+copy ..\..\win\win32\tilemap.dsp ..\..\build >nul
+copy ..\..\win\win32\winhack.dsp ..\..\build >nul
+
+echo.
+echo "Decoding/Copying a couple of bitmaps"
+if exist ..\..\win\win32\mnsel.bmp goto hasmnsel2
if exist .\mnsel.bmp goto hasmnsel1
if exist ..\..\win\win32\mnsel.uu uudecode ..\..\win\win32\mnsel.uu >nul
if exist .\mnsel.bmp goto hasmnsel1
echo Error - No UUDECODE utility to decode ..\..\win\win32\mnsel.uu
goto hasmnsel2
:hasmnsel1
-echo copy .\mnsel.bmp ..\..\winhacknt
-copy .\mnsel.bmp ..\..\winhacknt
+echo copy .\mnsel.bmp ..\..\win\win32
+copy .\mnsel.bmp ..\..\win\win32
:hasmnsel2
-if NOT exist ..\..\winhacknt\mnsel.bmp set err_nouu=Y
+if NOT exist ..\..\win\win32\mnsel.bmp set err_nouu=Y
-if exist ..\..\winhacknt\mnunsel.bmp goto hasmnuns2
+if exist ..\..\win\win32\mnunsel.bmp goto hasmnuns2
if exist .\mnunsel.bmp goto hasmnuns1
if exist ..\..\win\win32\mnunsel.uu uudecode ..\..\win\win32\mnunsel.uu >nul
if exist .\mnunsel.bmp goto hasmnuns1
echo Error - No UUDECODE utility to decode ..\..\win\win32\mnunsel.uu
goto hasmnuns2
:hasmnuns1
-echo copy .\mnsel.bmp ..\..\winhacknt
-copy .\mnunsel.bmp ..\..\winhacknt
+echo copy .\mnunsel.bmp ..\..\win\win32
+copy .\mnunsel.bmp ..\..\win\win32
:hasmnuns2
-if NOT exist ..\..\winhacknt\mnunsel.bmp set err_nouu=Y
+if NOT exist ..\..\win\win32\mnunsel.bmp set err_nouu=Y
-if exist ..\..\winhacknt\nethack.ico goto hasicon2
+echo "Decoding/Copying ICONS"
+if exist ..\..\win\win32\nethack.ico goto hasicon2
if exist .\nethack.ico goto hasicon1
if exist .\nhico.uu uudecode nhico.uu >nul
if exist .\nethack.ico goto hasicon1
echo Error - No UUDECODE utility to decode nhico.uu
goto hasicon2
:hasicon1
-echo copy .\nethack.ico ..\..\winhacknt
-copy .\nethack.ico ..\..\winhacknt
+echo.
+echo copy .\nethack.ico ..\..\win\win32
+copy .\nethack.ico ..\..\win\win32
:hasicon2
-if NOT exist ..\..\winhacknt\nethack.ico set err_nouu=Y
+if NOT exist ..\..\win\win32\nethack.ico set err_nouu=Y
goto done
:fini
:end
+
-BEGIN--cut here--CUT HERE--
begin 600 mnsel.bmp
M0DWV`````````'8````H````$````!`````!``0``````(``````````````
M````````````````````@```@````("``(````"``(``@(```,#`P`"`@(``
5_____P``````````````````````
`
end
-END--cut here--CUT HERE--
-BEGIN--cut here--CUT HERE--
begin 600 mnunsel.bmp
M0DWV`````````'8````H````$````!`````!``0``````(``````````````
M````````````````````@```@````("``(````"``(``@(```,#`P`"`@(``
5_____P``````````````````````
`
end
-END--cut here--CUT HERE--
###############################################################################
-Project: "dgncomp"=.\winhacknt\dgncomp.dsp - Package Owner=<4>
+Project: "dgncomp"=.\build\dgncomp.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "dgnstuff"=.\winhacknt\dgnstuff.dsp - Package Owner=<4>
+Project: "dgnstuff"=.\build\dgnstuff.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "dlb_main"=.\winhacknt\dlb_main.dsp - Package Owner=<4>
+Project: "dlb_main"=.\build\dlb_main.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "levcomp"=.\winhacknt\levcomp.dsp - Package Owner=<4>
+Project: "levcomp"=.\build\levcomp.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "levstuff"=.\winhacknt\levstuff.dsp - Package Owner=<4>
+Project: "levstuff"=.\build\levstuff.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "makedefs"=.\winhacknt\makedefs.dsp - Package Owner=<4>
+Project: "makedefs"=.\build\makedefs.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "recover"=.\winhacknt\recover.dsp - Package Owner=<4>
+Project: "recover"=.\build\recover.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "tile2bmp"=.\winhacknt\tile2bmp.dsp - Package Owner=<4>
+Project: "tile2bmp"=.\build\tile2bmp.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "tilemap"=.\winhacknt\tilemap.dsp - Package Owner=<4>
+Project: "tilemap"=.\build\tilemap.dsp - Package Owner=<4>
Package=<5>
{{{
###############################################################################
-Project: "winhack"=.\winhacknt\winhack.dsp - Package Owner=<4>
+Project: "winhack"=.\build\winhack.dsp - Package Owner=<4>
Package=<5>
{{{
# Begin Special Build Tool
SOURCE="$(InputPath)"
PostBuild_Desc=Building tiles.bmp
-PostBuild_Cmds=pushd ..\src ..\util\tile2bmp.exe tiles.bmp if exist tiles.bmp copy tiles.bmp ..\winhacknt popd
+PostBuild_Cmds=pushd ..\src ..\util\tile2bmp.exe tiles.bmp if exist tiles.bmp copy tiles.bmp ..\win\win32 popd
# End Special Build Tool
!ENDIF
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /I "." /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /D "MSWIN_GRAPHICS" /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /D "MSWIN_GRAPHICS" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
-# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /D "MSWIN_GRAPHICS" /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /D "MSWIN_GRAPHICS" /FD /GZ /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# PROP Intermediate_Dir "Unicode_Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /I "." /I "..\include" /I "..\sys\winnt" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /FD /c
+# ADD BASE CPP /nologo /W3 /GX /O2 /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /FD /c
# SUBTRACT BASE CPP /YX /Yc /Yu
-# ADD CPP /nologo /W3 /GX /O2 /I "." /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /D "DLB" /D "MSWIN_GRAPHICS" /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /D "DLB" /D "MSWIN_GRAPHICS" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# PROP Intermediate_Dir "Unicode_Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "..\include" /I "..\sys\winnt" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /FD /GZ /c
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "DLB" /FD /GZ /c
# SUBTRACT BASE CPP /YX /Yc /Yu
-# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /D "DLB" /D "MSWIN_GRAPHICS" /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\win\win32" /I "..\include" /I "..\sys\winnt" /I "..\sys\share" /I "..\win\share" /I "..\win\win32" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_UNICODE" /D "UNICODE" /D "DLB" /D "MSWIN_GRAPHICS" /FD /GZ /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# End Source File
# Begin Source File
-SOURCE=.\winhack.h
+SOURCE=..\win\win32\winhack.h
# End Source File
# Begin Source File
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# Begin Source File
-SOURCE=.\bitmap1.bmp
+SOURCE=..\win\win32\bitmap1.bmp
# End Source File
# Begin Source File
-SOURCE=.\bitmap2.bmp
+SOURCE=..\win\win32\bitmap2.bmp
# End Source File
# Begin Source File
-SOURCE=.\mnsel.bmp
+SOURCE=..\win\win32\mnsel.bmp
# End Source File
# Begin Source File
-SOURCE=.\mnunsel.bmp
+SOURCE=..\win\win32\mnunsel.bmp
# End Source File
# Begin Source File
-SOURCE=.\NETHACK.ICO
+SOURCE=..\win\win32\NETHACK.ICO
# End Source File
# Begin Source File
-SOURCE=.\small.ico
+SOURCE=..\win\win32\small.ico
# End Source File
# Begin Source File
-SOURCE=.\tiles.bmp
+SOURCE=..\win\win32\tiles.bmp
# End Source File
# Begin Source File
-SOURCE=.\winhack.ico
+SOURCE=..\win\win32\winhack.ico
# End Source File
# End Group
# Begin Group "wnd"
# PROP Default_Filter ""
# Begin Source File
-SOURCE=.\mhaskyn.c
+SOURCE=..\win\win32\mhaskyn.c
# End Source File
# Begin Source File
-SOURCE=.\mhaskyn.h
+SOURCE=..\win\win32\mhaskyn.h
# End Source File
# Begin Source File
-SOURCE=.\mhdlg.c
+SOURCE=..\win\win32\mhdlg.c
# End Source File
# Begin Source File
-SOURCE=.\mhdlg.h
+SOURCE=..\win\win32\mhdlg.h
# End Source File
# Begin Source File
-SOURCE=.\mhfont.c
+SOURCE=..\win\win32\mhfont.c
# End Source File
# Begin Source File
-SOURCE=.\mhfont.h
+SOURCE=..\win\win32\mhfont.h
# End Source File
# Begin Source File
-SOURCE=.\mhinput.c
+SOURCE=..\win\win32\mhinput.c
# End Source File
# Begin Source File
-SOURCE=.\mhinput.h
+SOURCE=..\win\win32\mhinput.h
# End Source File
# Begin Source File
-SOURCE=.\mhmain.c
+SOURCE=..\win\win32\mhmain.c
# End Source File
# Begin Source File
-SOURCE=.\mhmain.h
+SOURCE=..\win\win32\mhmain.h
# End Source File
# Begin Source File
-SOURCE=.\mhmap.c
+SOURCE=..\win\win32\mhmap.c
# End Source File
# Begin Source File
-SOURCE=.\mhmap.h
+SOURCE=..\win\win32\mhmap.h
# End Source File
# Begin Source File
-SOURCE=.\mhmenu.c
+SOURCE=..\win\win32\mhmenu.c
# End Source File
# Begin Source File
-SOURCE=.\mhmenu.h
+SOURCE=..\win\win32\mhmenu.h
# End Source File
# Begin Source File
-SOURCE=.\mhmsg.h
+SOURCE=..\win\win32\mhmsg.h
# End Source File
# Begin Source File
-SOURCE=.\mhmsgwnd.c
+SOURCE=..\win\win32\mhmsgwnd.c
# End Source File
# Begin Source File
-SOURCE=.\mhmsgwnd.h
+SOURCE=..\win\win32\mhmsgwnd.h
# End Source File
# Begin Source File
-SOURCE=.\mhrip.c
+SOURCE=..\win\win32\mhrip.c
# End Source File
# Begin Source File
-SOURCE=.\mhrip.h
+SOURCE=..\win\win32\mhrip.h
# End Source File
# Begin Source File
-SOURCE=.\mhstatus.c
+SOURCE=..\win\win32\mhstatus.c
# End Source File
# Begin Source File
-SOURCE=.\mhstatus.h
+SOURCE=..\win\win32\mhstatus.h
# End Source File
# Begin Source File
-SOURCE=.\mhtext.c
+SOURCE=..\win\win32\mhtext.c
# End Source File
# Begin Source File
-SOURCE=.\mhtext.h
+SOURCE=..\win\win32\mhtext.h
# End Source File
# Begin Source File
-SOURCE=.\mswproc.c
+SOURCE=..\win\win32\mswproc.c
# End Source File
# Begin Source File
-SOURCE=.\resource.h
+SOURCE=..\win\win32\resource.h
# End Source File
# Begin Source File
-SOURCE=.\winhack.c
+SOURCE=..\win\win32\winhack.c
# End Source File
# Begin Source File
-SOURCE=.\winhack.rc
+SOURCE=..\win\win32\winhack.rc
# End Source File
# Begin Source File
-SOURCE=.\winMS.h
+SOURCE=..\win\win32\winMS.h
# End Source File
# End Group
# Begin Source File
-SOURCE=.\ReadMe.txt
+SOURCE=..\win\win32\ReadMe.txt
# End Source File
# End Target
# End Project