tmac.ps: support eps file names and link destinations with spaces
[neatroff_make.git] / fonts / fonts.sh
blob80cbdc372dcdec9e27dec90af7eb6abe1490eeee
1 #!/bin/sh
2 # Fetch fonts for setting up Neatroff
4 # urw-base35 URL
5 URWURL="http://downloads.ghostscript.com/public/fonts/urw-base35-20160926.zip"
6 # AMS fonts URL
7 AMSURL="ftp://ftp.ams.org/pub/tex/amsfonts.zip"
9 # HTTP retrieval program
10 HGET="wget -c -O"
12 # Ghostscript fonts
13 echo "Retrieving $URWURL"
14 $HGET urw-base35.zip $URWURL
15 unzip -q urw-base35.zip
17 # AMS and computer modern fonts
18 echo "Retrieving $AMSURL"
19 $HGET amsfonts.zip $AMSURL
20 unzip -q amsfonts.zip 'fonts/*'
21 for x in fonts/afm/public/amsfonts/cm/*.afm
23 cp $x `basename $x .afm | tr a-z A-Z`.afm
24 done
25 for x in fonts/type1/public/amsfonts/cm/*.pfb
27 mv $x `basename $x .pfb | tr a-z A-Z`.pfb
28 done
29 rm -r fonts/