| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 #!/bin/sh 2 3 EROFF_DIR=/utils/eroff 4 EROFF_FONTDIR=/utils/eroff/usr/lib/font 5 EROFF_LPOPTS=-opostscript 6 7 export EROFF_DIR 8 export EROFF_FONTDIR 9 export EROFF_LPOPTS 10 11 set -- `getopt LlT:m:r: $*` 12 13 USAGE0="Usage: psprt [-hl -m mac ] file" 14 if [ $? -ne 0 ]; then 15 echo $USAGE0 16 exit 2 17 fi 18 19 opt_l="" 20 macro="" 21 22 while [ $# -gt 0 ]; do 23 case $1 in 24 -m) 25 macro="-m$2 $macro" 26 shift 2 27 ;; 28 -r) 29 macro="-r$2 $macro" 30 shift 2 31 ;; 32 -l) 33 opt_l="-l1" 34 shift 35 ;; 36 -h) 37 echo $USAGE0 38 exit 39 ;; 40 -T) 41 tr_opt="$tr_opt -$2" 42 shift 2 43 ;; 44 -L) macro="-P-l $macro" 45 shift 46 ;; 47 48 --) 49 shift 50 break 51 ;; 52 esac 53 done 54 55 56 groff $macro -t -p -Tps $tr_opt $1 > $1.ps 57 58 59 perl -i.bak -pe ' 60 $_ = qq@%!PS-Adobe-2.0\n@ if ($. == 1); 61 ' $1.ps 62 63 if [ $? = 0 ] ; then 64 rm $1.ps.bak 65 fi 66
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |