
:
: Make a utree structure
:

echo "What directory is to be the root? \c"
read utroot
sed "s|%R%|$utroot|" <utree.sh >utree.tmp
echo "In what directory will the command files reside? \c"
read utpath
sed "s|%P%|$utpath|" <utree.tmp >utree
rm utree.tmp
chmod +x ut*
mkdir $utroot $utroot/CONFERENCES
echo 0 >$utroot/CONFERENCES/.users
cat <<%%% >$utroot/CONFERENCES/.message
Current messages in this Unix Tree are:
%%%
for file in *.c
do	cc -Dindex=strchr -Drindex=strrchr $file -o `basename $file .c`
done
UTREE=$utroot utindex CONFERENCES COMPLETE
chmod 777 $utroot/CONFERENCES $utroot/CONFERENCES/.[um]*
cp indechof utaddto utread utbrowse utcat utindex linelist mtimeof $utpath
cp utree $utpath
exit
