#! /bin/csh
# Make NuLib shk file for download.
# Puts a copy of the files (without tabs and linefeeds) in ./trans, and then
#   adds them to "nulib.shk"
#
# ("detab" converts tabs to spaces, "lfstrip" converts LF -> CR)
#
# This is intended as an example; it may or may not work on your system.

echo "--- Converting tabs and linefeeds"
foreach file (README Benchmarks Makefile make.apw linkcom mkshk *.h *.c \
	nulib.mak nulib.lnk)
    echo $file
    detab $file >! nul.tmp
    lfstrip nul.tmp trans/$file
end

rm nul.tmp

cd trans
nulib cvftxt/0000 nulib.shk README Benchmarks Makefile nulib.mak nulib.lnk
nulib avfsrc/0006 nulib.shk make.apw mkshk
nulib avfsrc/0009 nulib.shk linkcom
nulib avfsrc/000a nulib.shk *.h *.c
cd ..

