# # This script takes a CTAN psfonts metrics tree, and copies the files # to a TDS tree. #!/usr/local/bin/bash # # Sebastian Rahtz August 1995 # # Provide a usage message to refresh human memories. if test \( $# -lt 1 \) then echo "Usage: ctan-to-cds fontdirectory" echo "You must supply the name of the font directory you want to transform" exit 1 fi # YOU NEED TO CHANGE THIS ROOT=/usr/local/lib/tex # pushd $1 H=`pwd` cd .. T=`pwd` VENDOR=`expr $T : '^.*\/\(.*\)'` FAMILY=`expr $H : '^.*\/\(.*\)$'` echo Vendor: $VENDOR echo Family: $FAMILY mkdir -p $ROOT/fonts/tfm/$VENDOR/$FAMILY cp $FAMILY/tfm/* $ROOT/fonts/tfm/$VENDOR/$FAMILY mkdir -p $ROOT/fonts/vf/$VENDOR/$FAMILY cp $FAMILY/vf/* $ROOT/fonts/vf/$VENDOR/$FAMILY mkdir -p $ROOT/tex/latex/psnfss cp $FAMILY/tex/* $ROOT/tex/latex/psnfss mkdir -p $ROOT/dvips cp $FAMILY/dvips/* $ROOT/dvips popd