set dist=.\dist
mkdir %dist%
del /Q %dist%\*.*
copy \src\dnews_help\manual.hlp %dist%\dadmin.hlp
rem copy \manual.hlp %dist%\dadmin.hlp
copy \src\dnews5.4\dfeed\dfeed.exe %dist%
copy \src\dudp\dudp.exe %dist%
copy windebug\dnews.exe %dist%
copy attach1.gif %dist%
copy duse.exe %dist%
copy dnewssrt.exe %dist%
copy windebug\addsvc.exe %dist%
copy windebug\xmit.exe %dist%
copy \src\udp\udpnews\debug\udp2news.exe %dist%
copy windebug\drobot.exe %dist%
copy windebug\dposter.exe %dist%
copy windebug\dtail.exe %dist%
copy windebug\dnewsweb.exe %dist%
copy windebug\gupcgi.exe %dist%
copy setfeed.ini %dist%
copy setupsvc.cmd %dist%
copy addmail.cmd %dist%
copy addfts.cmd %dist%
copy windebug\tellnews.exe %dist%
copy windebug\dmulti.exe %dist%
copy dnewsweb.ini %dist%
copy dnewsweb.txt %dist%

copy fts.conf %dist%\fts.con
copy access.conf %dist%\access.con
copy expire.conf %dist%\expire.con
copy newsfeeds_nt.conf %dist%\newsfeed.con
copy moderators.conf %dist%\moderato.con
copy control.conf %dist%\control.con

copy dnews.add %dist%
copy active_nt.dat %dist%\active.dat
copy license.txt %dist%
copy nocached.body %dist%\nocached.bod
copy \src\dadmin\dadmin.exe %dist%

copy ..\dmgr50\dmgrsvc.exe %dist%
copy ..\dmgr50\dmgrcgi.exe %dist%

mkdir \dmgrtmp
copy ..\dmgr50\*.htm  \dmgrtmp
cd \dmgrtmp 
del \dmgrtmp\*.mgr
rename *.htm *.mgr

cd \src\dnews5.4
copy \dmgrtmp\*.mgr %dist%
copy \src\web47\*.tpl %dist%
copy \src\web47\*.htm %dist%

del dist.zip
\app\winzip\winzip32 -min -a dist.zip dist\*.*
makeself