@echo off

rem Make sure we are in target directory
call "%~dp0/verify_dir.bat" %1
if %ERRORLEVEL% NEQ 0 exit 1

if exist *.h  del /F /Q *.h

copy /Y ..\..\..\rtcs\source\include\select.h .
copy /Y ..\..\..\rtcs\source\include\ftp.h .
copy /Y ..\..\..\rtcs\source\include\ftpc.h .
copy /Y ..\..\..\rtcs\source\include\ftpd.h .
copy /Y ..\..\..\rtcs\source\include\ftpd_msg.h .
copy /Y ..\..\..\rtcs\source\include\rtcsvers.h .
copy /Y ..\..\..\rtcs\source\include\rtcs.h .
copy /Y ..\..\..\rtcs\source\include\rtcsrtos.h .
copy /Y ..\..\..\rtcs\source\include\rtcstime.h .
copy /Y ..\..\..\rtcs\source\include\rtcscfg.h .
copy /Y ..\..\..\rtcs\source\include\rtcs_in.h .
copy /Y ..\..\..\rtcs\source\include\rtcshdlc.h .
copy /Y ..\..\..\rtcs\source\include\pppfsm.h .
copy /Y ..\..\..\rtcs\source\include\ppphdlc.h .
copy /Y ..\..\..\rtcs\source\include\ppp.h .
copy /Y ..\..\..\rtcs\source\include\dns.h .
copy /Y ..\..\..\rtcs\source\include\svc.h .
copy /Y ..\..\..\rtcs\source\include\svcauth.h .
copy /Y ..\..\..\rtcs\source\include\xdr.h .
copy /Y ..\..\..\rtcs\source\include\dhcp.h .
copy /Y ..\..\..\rtcs\source\include\rpctypes.h .
copy /Y ..\..\..\rtcs\source\include\rtcsrpc.h .
copy /Y ..\..\..\rtcs\source\include\rpcmsg.h .
copy /Y ..\..\..\rtcs\source\include\clnt.h .
copy /Y ..\..\..\rtcs\source\include\pmap.h .
copy /Y ..\..\..\rtcs\source\include\pmapif.h .
copy /Y ..\..\..\rtcs\source\include\auth.h .
copy /Y ..\..\..\rtcs\source\include\iodun.h .
copy /Y ..\..\..\rtcs\source\include\rtcs25x.h .
copy /Y ..\..\..\rtcs\source\include\rtcslog.h .
copy /Y ..\..\..\rtcs\source\include\nat.h .
copy /Y ..\..\..\rtcs\source\include\nat_session.h .
copy /Y ..\..\..\rtcs\source\include\ipcfg.h .
copy /Y ..\..\..\rtcs\source\include\iwcfg.h .

copy /Y ..\..\..\rtcs\source\httpd\httpd.h .
copy /Y ..\..\..\rtcs\source\httpd\httpd_types.h .
copy /Y ..\..\..\rtcs\source\httpd\httpd_wrapper.h .
copy /Y ..\..\..\rtcs\source\httpd\httpd_mqx.h .
copy /Y ..\..\..\rtcs\source\httpd\httpd_supp.h .
copy /Y ..\..\..\rtcs\source\httpd\httpd_cnfg.h .


copy /Y ..\..\..\rtcs\source\include\snmp.h .
copy /Y ..\..\..\rtcs\source\include\snmpcfg.h .
copy /Y ..\..\..\rtcs\source\include\asn1.h .
copy /Y ..\..\..\rtcs\source\include\rtcspcb.h .

copy /Y ..\..\..\rtcs\source\include\tcp.h .
copy /Y ..\..\..\rtcs\source\include\ip.h .
