home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1750 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  6.2 KB

  1. From: clewis@ecicrl.UUCP (Chris Lewis)
  2. Newsgroups: comp.sources.bugs,comp.text,alt.sources
  3. Subject: Official Patch 2 for Psroff.
  4. Message-ID: <843@ecicrl.UUCP>
  5. Date: 29 Aug 90 19:28:13 GMT
  6.  
  7.  
  8.     This is official patch 02 for Psroff 2.0.
  9.     Please apply it by:
  10.     cd <psroff source directory>
  11.     patch -N -p < <this file>
  12.  
  13. ./defs.h        Patch level 2
  14. ./audit.S        Numerous fixes and enhancements.
  15.  
  16. *** /tmp/PATCHold/./defs.h    Wed Aug 29 15:20:10 1990
  17. --- ./defs.h    Wed Aug 29 15:20:12 1990
  18. ***************
  19. *** 1,4 ****
  20. ! /*    Copyright 1988, 1989 15:15:01 Chris Lewis
  21.           All Rights Reserved
  22.   
  23.       Permission to copy and further distribute is freely given provided
  24. --- 1,4 ----
  25. ! /*    Copyright 1988, 1989 15:04:07 Chris Lewis
  26.           All Rights Reserved
  27.   
  28.       Permission to copy and further distribute is freely given provided
  29. ***************
  30. *** 6,18 ****
  31.       sold for profit.
  32.   
  33.       Project:    Generic Troff drivers
  34. !     Module:        defs.h 2.2 90/08/10 15:15:01
  35.       Author:     Chris Lewis
  36.       Specs:        Main header file - contains some customization
  37.    */
  38.   
  39.   /*    Official Release and Patch level:    */
  40. ! #define    T2VERSION    "@(#)PSROFF Copyright 90/08/10 Chris Lewis - R2 P1"
  41.   
  42.   #ifndef    LIBDIR
  43.   /*    Don't touch this */
  44. --- 6,18 ----
  45.       sold for profit.
  46.   
  47.       Project:    Generic Troff drivers
  48. !     Module:        defs.h 2.3 90/08/29 15:04:07
  49.       Author:     Chris Lewis
  50.       Specs:        Main header file - contains some customization
  51.    */
  52.   
  53.   /*    Official Release and Patch level:    */
  54. ! #define    T2VERSION    "@(#)PSROFF Copyright 90/08/29 Chris Lewis - R2 P2"
  55.   
  56.   #ifndef    LIBDIR
  57.   /*    Don't touch this */
  58. *** /tmp/PATCHold/./audit.S    Wed Aug 29 15:20:20 1990
  59. --- ./audit.S    Wed Aug 29 15:20:22 1990
  60. ***************
  61. *** 1,5 ****
  62.   %%STARTSHELL%%
  63. ! #    Psroff checking script 2.2 90/08/07
  64.   chkinst=false
  65.   for i
  66.   do
  67. --- 1,5 ----
  68.   %%STARTSHELL%%
  69. ! #    Psroff checking script 2.4 90/08/29
  70.   chkinst=false
  71.   for i
  72.   do
  73. ***************
  74. *** 81,90 ****
  75. --- 81,112 ----
  76.           break
  77.       fi
  78.       done
  79. +     if [ -z "$troff" ]
  80. +     then
  81. +     echo "ERROR: Can't find troff!"
  82. +     exit 1
  83. +     fi
  84.   fi
  85.   
  86.   eval `grep '^trofftype=' $psrofflib`
  87.   echo "INFO: Your trofftype setting in $psrofflib is trofftype='$trofftype'"
  88. + if [ ! -r $FONTDIR/ftR -o ! -r $FONTDIR/ftI -o ! -r $FONTDIR/ftB -o \
  89. +     ! -r $FONTDIR/ftS ]
  90. + then
  91. + cat <<!
  92. + WARNING: Missing one of the $FONTDIR/ft[RIBS] files.
  93. +     I was hoping that FONTDIR was pointing at the place where
  94. +     your version of troff keeps its width tables (by default
  95. +     /usr/lib/font).  Since this is not true, I will not be able
  96. +     to tell with complete accuracy whether your trofftype setting
  97. +     works.  Therefore, take any ERROR messages about trofftype with
  98. +     a grain of salt.  You could always copy widths/widthps/ft[RIBS]
  99. +     (after make widths) into $FONTDIR, but, I NEED a ftR from
  100. +     your ORIGINAL troff distribution to test HEADERSIZE properly.
  101. + !
  102. + fi
  103.   if [ -n "$FONTDIR" ]
  104.   then
  105.       arglist="-F$FONTDIR/./ftXX"
  106. ***************
  107. *** 92,98 ****
  108.   for i in $arglist -T. ''
  109.   do
  110.       echo "INFO: Testing '$i' trofftype setting"
  111. !     $troff -t < /dev/null $i > /dev/null
  112.       rc=$?
  113.       if [ $rc = 0 ]
  114.       then
  115. --- 114,120 ----
  116.   for i in $arglist -T. ''
  117.   do
  118.       echo "INFO: Testing '$i' trofftype setting"
  119. !     $troff -t $i < /dev/null > /dev/null
  120.       rc=$?
  121.       if [ $rc = 0 ]
  122.       then
  123. ***************
  124. *** 210,216 ****
  125.   fi
  126.   
  127.   Topts="`sed -e '/^[a-zA-Z]/!d' -e '/^troff/d' \
  128. !     -e '/^trofftype/d' -e 's/[     ].*//' $psrofflib`"
  129.   echo "INFO: Commencing psrofflib ($psrofflib) checking"
  130.   if $chkinst
  131.   then
  132. --- 232,238 ----
  133.   fi
  134.   
  135.   Topts="`sed -e '/^[a-zA-Z]/!d' -e '/^troff/d' \
  136. !     -e '/^trofftype/d' -e 's/[     ].*//' $psrofflib | sort -u`"
  137.   echo "INFO: Commencing psrofflib ($psrofflib) checking"
  138.   if $chkinst
  139.   then
  140. ***************
  141. *** 235,245 ****
  142.       t2arg="<not set>"
  143.       lparg="<not set>"
  144.       ptr="<not set>"
  145. !     line=`sed -n -e '/^troff/p' \
  146. !          -e "/^$type[     ]/{
  147. !              s/^$type[     ]*\(.*\)$/F='T' \1/p
  148. !              q
  149. !             }" $psrofflib`
  150.       eval "$line"
  151.       echo "INFO: psroff -T$type settings:"
  152.       echo "      troff      $troff"
  153. --- 257,277 ----
  154.       t2arg="<not set>"
  155.       lparg="<not set>"
  156.       ptr="<not set>"
  157. ! #    If your system has no awk (or a busted one), you may have to
  158. ! #    comment out the "line=`awk ... $psrofflib" lines, and uncomment
  159. ! #    the sed script.  If you do, you won't be able to continue
  160. ! #    psrofflib lines, so you'll have to "join" the entries in psrofflib
  161. ! #    (remembering to delete the name fields in the continuation lines).
  162. !     line=`awk '
  163. !     $1 ~ /^#/ {next}
  164. !     $0 ~ /^troff/ { print $0 }
  165. !     $1 == "'$type'" {
  166. !         seen=1
  167. !         print "F='T'" substr($0, length($1) + 1)
  168. !         next
  169. !     }
  170. !     { if (seen) exit(0) }
  171. !     ' $psrofflib`
  172.       eval "$line"
  173.       echo "INFO: psroff -T$type settings:"
  174.       echo "      troff      $troff"
  175. ***************
  176. *** 293,299 ****
  177.       echo $printertype >> PRINTERLIST
  178.   done
  179.   
  180. ! if [ -z "$printerlist" ]
  181.   then
  182.       printerlist=`sort -u PRINTERLIST`
  183.   fi
  184. --- 325,331 ----
  185.       echo $printertype >> PRINTERLIST
  186.   done
  187.   
  188. ! if [ -z "$printerlist" -a -s PRINTERLIST ]
  189.   then
  190.       printerlist=`sort -u PRINTERLIST`
  191.   fi
  192. ***************
  193. *** 360,373 ****
  194.           }
  195.       }
  196.       for (name in catfonts) {
  197. !         if (name && !fonts[name])
  198. !         printf("  FONT %s: do not use: %s/%s/ft%s exists, but"
  199.               name, fontdir, printertype, name)
  200. !         printf(" no %s.fonts\n", printertype)
  201.       }
  202.       }'
  203.       if [ -n "$LJF" -a -d "$LJF" -a "$printertype" = lj ]
  204.       then
  205.       sed -e '/^[A-Za-z][A-Za-z]*/!d' $libbase/$printertype.fonts |
  206.           while read troffname english sequence flags
  207.           do
  208. --- 392,408 ----
  209.           }
  210.       }
  211.       for (name in catfonts) {
  212. !         if (name && !fonts[name]) {
  213. !         printf("  FONT %s: do not use: %s/%s/ft%s exists, but", \
  214.               name, fontdir, printertype, name)
  215. !         printf(" not in %s.fonts\n", printertype)
  216. !         }
  217.       }
  218.       }'
  219.       if [ -n "$LJF" -a -d "$LJF" -a "$printertype" = lj ]
  220.       then
  221. +     echo "I'm checking $printertype.fonts file for missing font"
  222. +     echo "files, please have patience"
  223.       sed -e '/^[A-Za-z][A-Za-z]*/!d' $libbase/$printertype.fonts |
  224.           while read troffname english sequence flags
  225.           do
  226. -- 
  227. Chris Lewis, Phone: (416)-294-9253
  228. UUCP: uunet!utai!lsuc!ecicrl!clewis
  229. Moderator of the Ferret Mailing List (ferret-request@eci386)
  230. Psroff mailing list (psroff-request@eci386)
  231.