REM DELETE directories
REM
deltree /y \bindist\cc386
REM
REM CREATE directories
REM
mkdir c:\bindist
mkdir c:\bindist\cc386
mkdir c:\bindist\cc386\bin
mkdir c:\bindist\cc386\english
mkdir c:\bindist\cc386\espanol
mkdir c:\bindist\cc386\examples
mkdir c:\bindist\cc386\examples\dos
mkdir c:\bindist\cc386\examples\windows
mkdir c:\bindist\cc386\include
mkdir c:\bindist\cc386\include\win32
mkdir c:\bindist\cc386\include\sys
mkdir c:\bindist\cc386\lib
mkdir c:\bindist\cc386\lib\startup
mkdir c:\bindist\cc386\install

REM
REM executables
REM
copy \tools\bin\builtins.mak c:\bindist\cc386\bin
copy \tools\cc\valx\valx.hlp c:\bindist\cc386\bin
copy \tools\cc\help\*.hlp c:\bindist\cc386\bin
copy \tools\bin\win32\cc386.exe       c:\bindist\cc386\bin\cc386.exe
copy \tools\bin\win32\ccide.exe       c:\bindist\cc386\bin\ccide.exe
copy \tools\bin\win32\cl386.exe c:\bindist\cc386\bin\cl386.exe
copy \tools\bin\win32\valx.exe c:\bindist\cc386\bin\valx.exe
copy \tools\bin\win32\xlib.exe c:\bindist\cc386\bin\xlib.exe
copy \tools\bin\win32\itouch.exe c:\bindist\cc386\bin\itouch.exe
copy \tools\bin\win32\imake.exe c:\bindist\cc386\bin\imake.exe
copy \tools\bin\win32\nasm.exe C:\bindist\cc386\bin\nasm.exe
copy \tools\bin\win32\mkliblst.exe C:\bindist\cc386\bin\mkliblst.exe
copy \tools\bin\win32\mk386.exe c:\bindist\cc386\bin\mk386.exe
copy \tools\bin\win32\xrc.exe c:\bindist\cc386\bin\xrc.exe
copy \tools\bin\win32\grep.exe c:\bindist\cc386\bin\grep.exe
copy \tools\bin\win32\import.exe c:\bindist\cc386\bin\import.exe
copy \tools\bin\win32\brc.exe c:\bindist\cc386\bin\brc.exe
copy \tools\bin\pmodew.exe c:\bindist\cc386\lib
copy clibs\stdinc\*.h c:\bindist\cc386\include
copy clibs\stdinc\sys\*.h c:\bindist\cc386\include\sys
copy clibs\wininc\*.h c:\bindist\cc386\include
copy clibs\wininc\win32\*.h c:\bindist\cc386\include\win32
del C:\bindist\cc386\include\llp.h C:\bindist\cc386\include\libp.h
copy clibs\object\c0*.obj c:\bindist\cc386\lib
copy clibs\object\wildarg?.obj c:\bindist\cc386\lib
copy clibs\object\*.lib c:\bindist\cc386\lib
copy \tools\cc\lib\4gstub.exe c:\bindist\cc386\lib
copy \tools\cc\lib\4gs.exe c:\bindist\cc386\lib
copy \tools\cc\lib\4gsq.exe c:\bindist\cc386\lib
copy \tools\cc\lib\wdosxle.exe c:\bindist\cc386\lib
copy \tools\cc\lib\zrdx.exe c:\bindist\cc386\lib
copy \tools\cc\lib\zrxsetup.exe c:\bindist\cc386\lib
copy \tools\cc\lib\cwstub.exe c:\bindist\cc386\lib
copy clibs\msdos\386\*.asm c:\bindist\cc386\lib\startup
copy clibs\win32\386\*.asm c:\bindist\cc386\lib\startup
copy clibs\msdos\386\*.nas c:\bindist\cc386\lib\startup
copy \tools\bin\standard.mac C:\bindist\cc386\bin\standard.mac
copy \tools\cc\examples\*.* c:\bindist\cc386\examples
copy \tools\cc\examples\dos\*.* c:\bindist\cc386\examples\dos
copy \tools\cc\examples\windows\*.* c:\bindist\cc386\examples\windows

REM docs
REM
copy copying c:\bindist\cc386
copy clibs\msdos\pmw133\pmodew.doc c:\bindist\cc386\english
copy clibs\msdos\pmode308\pmode.doc c:\bindist\cc386\english\pmode308.doc
copy nasm097\licence c:\bindist\cc386\nasm.lic
copy nasm097\doc\nasmdoc.txt c:\bindist\cc836\english\nasm.doc
copy winrm.txt c:\bindist\cc386\readme.txt
copy win.txt c:\bindist\cc386\win.txt
copy install.txt c:\bindist\cc386
copy license.txt c:\bindist\cc386
copy relnotes.doc c:\bindist\cc386
copy *.doc c:\bindist\cc386\english
copy ccide\ccide.doc c:\bindist\cc386\english

copy ..\man\imake.txt c:\bindist\cc386\english\imake.doc
copy ..\man\lib.txt c:\bindist\cc386\english\xlib.doc
copy cl_49\cl386e.txt c:\bindist\cc386\english\cl386e.doc
copy mk_49\cl&mk386.txt c:\bindist\cc386\english\cl&mk386.doc

REM spanish docs
REM
copy \tools\cc\sdoc\*.doc c:\bindist\cc386\espanol\*.sdc
copy \tools\cc\sdoc\*.txt c:\bindist\cc386\espanol\*.stx

REM
REM make install files
REM
pkzip c:\bindist\cc386\install\root.zip c:\bindist\cc386\*.*
pkzip c:\bindist\cc386\install\bin.zip c:\bindist\cc386\bin\*.*
pkzip c:\bindist\cc386\install\english.zip c:\bindist\cc386\english\*.*
pkzip c:\bindist\cc386\install\espanol.zip c:\bindist\cc386\espanol\*.*
pkzip c:\bindist\cc386\install\examples.zip c:\bindist\cc386\examples\*.*
pkzip c:\bindist\cc386\install\include.zip c:\bindist\cc386\include\*.*
pkzip c:\bindist\cc386\install\includew.zip c:\bindist\cc386\include\win32\*.*
pkzip c:\bindist\cc386\install\lib.zip c:\bindist\cc386\lib\*.*
pkzip c:\bindist\cc386\install\libs.zip c:\bindist\cc386\lib\startup\*.*
pkzip c:\bindist\cc386\install\dosexam.zip c:\bindist\cc386\examples\dos\*.*
pkzip c:\bindist\cc386\install\winexam.zip c:\bindist\cc386\examples\windows\*.*
copy c:\bindist\cc386\readme.txt c:\bindist\cc386\install
copy c:\bindist\cc386\license.txt c:\bindist\cc386\install
copy winstall\winstall.exe c:\bindist\cc386\install\setup.exe
copy winstall\wreboot.exe c:\bindist\cc386\install\wreboot.exe
copy winstall\defs.exe c:\bindist\cc386\bin\defs.exe