]> git.lyx.org Git - lyx.git/commitdiff
* Enable man2ps to work without hard-coding the locations of groff or dpost.
authorAngus Leeming <leeming@lyx.org>
Fri, 7 Jul 2006 14:05:23 +0000 (14:05 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 7 Jul 2006 14:05:23 +0000 (14:05 +0000)
* Re-add whitespace fluff to {dvi,dtl}.doc --- minimize change to original package.
* Enable man2ps (and hence doc) targets in Makefile to build out of the box.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14359 a592a061-630c-0410-9148-cb99ea01b6c8

development/Win32/packaging/dtl/Makefile
development/Win32/packaging/dtl/dtl.doc
development/Win32/packaging/dtl/dvi.doc
development/Win32/packaging/dtl/man2ps

index 5cf9c8e3840a901e93836d54f1042f491d2aff51..5966cd5273a626728e0bd397d9c61fe7657ea3d5 100644 (file)
@@ -60,12 +60,11 @@ DTL_DBN             = $(DOCS) $(SRC) $(TESTS)
        $(DITROFF) -man -Tascii $< | $(COL) >$@
 
 .man.ps:
-       $(MAN2PS) $< > $@
+       $(MAN2PS) $< > $@
 
 #=======================================================================
 
-#all:  dtl check doc
-all:  dtl check
+all:  dtl check doc
 
 doc:  dt2dv.hlp dv2dt.hlp dt2dv.ps dv2dt.ps
 
index a6f444f647b2b60b04c2e87159bf40455c7091af..b170e0f2dbf6217b8f854fa1c1fc7fd9bfca6b09 100644 (file)
@@ -13,7 +13,7 @@ ASCII text representation of a DVI file.
 
 References for DVI file structure:
 ----------------------------------
-
 In this distribution:
 
         dvi.doc
@@ -21,7 +21,7 @@ In this distribution:
 In the TeX archives:
 
         CTAN:  dviware/driv-standard/level-0/dvistd0.tex
-
     "The DVI Driver Standard, Level 0",
     by  The TUG DVI Driver Standards Committee  (now defunct)
     chaired by Joachim Schrod.
@@ -39,7 +39,7 @@ The other DTL commands correspond one-to-one with DVI commands, but I
 have used briefer names (except for `special') than those used in the
 DVI standards document.
 
-    DTL  :  DVI
+    DTL  :  DVI 
 
     (text)  :  series of set_char commands, for printable ASCII text
     \(   :  literal ASCII left parenthesis in (text)
index 5e576c90c82532a6c9636ab9f50a1bf35fd00ed9..738d871ba0416085cf3a3c759b2936f8cbd2e2f1 100644 (file)
@@ -22,7 +22,7 @@ DVI Commands
 Listed in the free format:
 "Opcode  Symbol  Parameter[Signed? Bytes]  ...  Action".
 
-
+    
     0    set_char_0    -  set character 0 from current font
     ...
     127  set_char_127  -  set character 127 from current font
index 8d0f2304438c352972d13055fd152e80ca8b3022..a74da6746b7fa06a9b61adb26a70dc2e43e8056e 100644 (file)
@@ -20,16 +20,16 @@ case `basename $0` in
 esac
 
 # We can use either GNU groff or Sun Solaris troff + dpost
-if [ -x /usr/local/bin/groff ]
+if [ which groff > /dev/null ]
 then   # GNU groff
        TROFF="groff $FORMAT"
        TROFF2PS="cat"
-elif [ -x /usr/lib/lp/postscript/dpost ]
+elif [ which dpost > /dev/null ]
 then   # Solaris 2.1
        TROFF="troff $FORMAT"
        TROFF2PS="/usr/lib/lp/postscript/dpost"
 else
-       echo "Cannot find troff-to-PostScript filter"
+       echo "Cannot find troff-to-PostScript filter" >&2
        exit 1
 fi