#!/bin/csh

mkdir lib-dos

foreach x (apex bone data edit file help info save user xtra)
	mkdir lib-dos/$x
	echo "Delete this file" > lib-dos/$x/deleteme.txt
end

\cp lib/edit/* lib-dos/edit
\cp lib/file/* lib-dos/file
\cp lib/help/* lib-dos/help
\cp lib/user/* lib-dos/user

foreach x (apex bone data edit file help info save user xtra)
	foreach y (lib-dos/$x/*)
		\cp $y $y.bak
		unix2dos -ascii $y.bak $y
		\rm $y.bak
	end
end


