Blame SOURCES/a2ps-make-fonts-map.patch

0d8902
--- a2ps-4.13/afm/make_fonts_map.sh.make-fonts-map	1999-01-20 14:28:27.000000000 +0000
0d8902
+++ a2ps-4.13/afm/make_fonts_map.sh	2004-12-09 12:34:45.517150083 +0000
0d8902
@@ -58,23 +58,15 @@
0d8902
 do
0d8902
   # Extract the font name.
0d8902
   name=`sed -n -e '/^FontName/{
0d8902
-s/FontName[ ]*\([-a-zA-Z]*\).*/\1/p
0d8902
+s/FontName[ ]*\([-a-zA-Z0-9]*\).*/\1/p
0d8902
 q
0d8902
 }' $file`
0d8902
   shortname=`basename $file | sed -e 's/\.[^\.]*$//g'`
0d8902
   if test x$name = x; then :; else
0d8902
-    # This is probably not a correct AFM file.
0d8902
+    # If name was empty this is probably not a correct AFM file.
0d8902
     # (For instance Ogonkify's pseudo AFMs that define the encodings)
0d8902
     # Forget it.
0d8902
-    col1=`echo "$name$many_spaces" | sed -e 's/^\('$many_dots'\).*$/\1/g'`
0d8902
-    # Make sure the name has not been cut
0d8902
-    case "$col1" in
0d8902
-      $name*) ;;
0d8902
-      *) echo "A name has been cut ($name -> $col1)." 1>&2
0d8902
-	 exit 1 ;;
0d8902
-    esac
0d8902
-    col2="$shortname"
0d8902
-    echo "$col1$col2" >> fonts.map.new
0d8902
+    printf "%-30s %s\n" $name $shortname >> fonts.map.new
0d8902
   fi
0d8902
 done
0d8902