#!/bin/sh
#
# Build a ZIP file containing the DE source to be trabsfered to a PC.

rm -rf dosdes.zip tmp
mkdir tmp
#cp ../de/*.[ch] tmp
# For a cleaner MS C 7.0 build delete all the strings after #else's and
# #endif's.
for file in ../*.[ch]; do
    cat $file | sed '
s/^#else.*/#else/
s/^#endif.*/#endif/
' > tmp/`basename $file`
done
cp ../man/TAILORING tmp/tailor.txt
nroff -man ../man/de.1 | col -b > tmp/de.txt
cp README.TXT de.cfg de.hlp de.ico de.pif de.ufn makefile proto-de.h tmp
cd tmp
zip ../dosdes.zip *
cd ..
rm -rf tmp
