| # Trivial script for checking and setting the default PostScript font |
| # encoding. Changing the default assumes you can write in $POSTLIB. |
| # Available font encodings are files in $POSTLIB that end in .enc. |
| # The default is $POSTLIB/Default.enc. |
| POSTLIB=/sys/lib/postscript/prologues |
| if (test -f $i -a $i '!=' $DEFAULT) { |
| NAME=`{echo $i | sed s/\\.enc//} |
| if (cmp $i $DEFAULT >/dev/null >[2]/dev/null) { |
| echo Default'='$CURRENTDEFAULT |
| if (test -f $POSTLIB/$1.enc) { |
| cp $POSTLIB/$1.enc $POSTLIB/$DEFAULT |
| if not echo unrecognized encoding name $1 >[1=2] |