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

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