cp /usr/man/index /usr/man/index.orig
foreach i ($*)
   echo "Adding $i:r $i:r L to the index file"
   echo "$i:h $i:h L" >> /usr/man/index
end
sort /usr/man/index > /tmp/index 
mv /tmp/index /usr/man/index
mkdir /usr/man/man.L
cp $* /usr/man/man.L
