summaryrefslogtreecommitdiff
path: root/Makefile.comm
Commit message (Collapse)AuthorAgeFilesLines
* Makefile.comm (.man.n): Use C locale.wl2013-11-061-2/+2
| | | | | Problem reported by Petr Man <petr@madnetwork.org>; fix suggested by Ralph Corderoy <ralph@inputplus.co.uk>.
* Add new output device `gropdf'.wl2011-07-261-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | * font/devpdf/*: New device files for gropdf. * src/devices/gropdf/*: New device. * Makefile.comm (install_dev, uninstall_dev): Handle more subdirectories. * Makefile.in (DEVDIRS, OTHERDIRS, EXTRADIRS): Add directories related to gropdf. * MANIFEST: Updated. * test-groff.in (GROFF_BIN_PATH): Updated. * tmac/Makefile.sub (NORMALFILES): Updated. * tmac/pdf.tmac: New file. * tmac/troffrc: Updated. * doc/groff.texinfo: Document it. * doc/Makefile.in, doc/Makefile.sub (groff_bin_dirs): Udpated. * doc/pic.ms: Updated. * man/groff_out.man, src/devices/grops/grops.man, src/preproc/pic/pic.man, src/roff/groff/groff.man, src/utils/afmtodit/afmtodit.man, src/utils/pfbtops/pfbtops.man: Updated. * contrib/pdfmark/pdfmark.ms: Updated.
* * Makefile.comm (INCLUDES): Fix typo.wl2011-01-151-1/+1
|
* Add wide character support to grotty.wl2010-12-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a huge patch, mainly by adding the gnulib infrastructure in a separate directory tree (in `src/libs/gnulib/lib') for its `wcwidth' module. However, the actual changes to native groff source files are just a few lines. * Makefile.comm (INCLUDES): Updated. (LIBGNU): Define. * Makefile.in (NOMAKEDIRS): Updated. (GNULLIBDIRS): Define. (DISTDIRS): Add GNULLIBDIRS. ($LIBDIRS): Depend on GNULLIBDIRS. ($GNULLIBDIRS): New target. * src/libs/libgroff/font.cpp (font::get_width, font::load) [is_unicode]: Use `wcwidth'. * src/roff/troff/Makefile.sub (XLIBS): Add LIBGNU. * src/roff/troff/input.cpp (main): Set LC_CTYPE. * src/devices/grotty/Makefile.sub (XLIBS): Add LIBGNU. * src/devices/grotty/tty.cpp (main): Set LC_CTYPE. * src/libs/gnulib/*: New files. The import was done as follows: . Call gnulib-tool --create-testdir \ --dir=src/libs/gnulib \ wcwidth to get a testbed. . Manually move directories src/libs/gl{lib,m4} to src/libs/{lib,m4}, and do s/gllib/lib/ and s/glm4/m4/ everywhere to `convert' the gnulib testbed to a standard gnulib configuration as maintained by gnulib-tool. . Call gnulib-tool --add-import \ --dir=src/libs/gnulib \ wcwidth to update everything.
* * */Makefile.* (CLEANADD, CLEANNOTSRCDIRADD, CLEANDIRADD): Renamedgroff-1_20_1wl2009-01-081-6/+6
| | | | | to... (MOSTLYCLEANADD, MOSTLYCLEANNOTSRCDIRADD, MOSTLYCLEANDIRADD): This.
* Update copyright year.wl2009-01-051-1/+1
|
* * */*: Update GPL2 to GPL3.wl2009-01-041-5/+4
|
* * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.wl2008-04-301-2/+2
|
* * src/devices/xditview/TODO: Add some more items.wl2007-02-251-20/+21
| | | | | | | | | | | | | * Makefile.comm (.man.n): Add @APPRESDIR@. Sort entries. * src/devices/xditview/gxditview.man: Document GXditview resource file. Other documentation enhancements based on a patch from Jörg. * src/devices/xditview/GXditview.ad: Make all keys work regardless of the current mouse position.
* * Makefile.in (oldfontdir): New variable.wl2006-12-311-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (MDEFINES): Add $(oldfontdir). (uninstall_dirs): Remove `current' link. Remove $(oldfontdir). * Makefile.comm (oldfontsubdir): New variable. (install_dev): Install files collected in $(OLDDEVFILES) into $(oldfontsubdir). (uninstall_dev): Remove data in $(oldfontsubdir). (.man.n): Handle @OLDFONTDIR@. * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man: Document GROFF_FONT_PATH. * src/devices/grops/grops.man: Document GROFF_FONT_PATH and old font description files. * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New variables. * font/devps/old/*: New directory, holding the previous version of the 35 Adobe core font description files. * font/devps/*: Regenerated the 35 Adobe core fonts, using the Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de. * NEWS: Document font update.
* * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).wl2006-12-311-1/+2
| | | | | | | * Makefile.comm (fonts): New (empty) target. * Makefile.in (TARGETS): Add `fonts'. * MANIFEST: Add `chem'.
* During installation, create soft link from <version> to `current' inwl2006-12-081-7/+3
| | | | | | | | | | | | | | <datadir>/groff. * Makefile.comm (install): Renamed to... (do_install): This. (prefix_must_exist): Removed. Code moved to Makefile.in. * Makefile.in (TARGETS): Remove `install'. (install): New target which first creates the directory given by --prefix, then calling `make' to do the installation, and finishing with the creation of the soft link.
* * Makefile.comm (.man.n): Handle @DATASUBDIR@.wl2006-11-101-0/+1
|
* * Makefile.comm (.y.cpp): Fix #line arguments in output.wl2006-03-181-1/+3
|
* * Makefile.in: Add comment about DESTDIR.wl2006-02-261-36/+40
| | | | | | | | | | | | | | | | | | * Makefile.sub: Add DESTDIR to install and uninstall targets to support staged installations. * Makefile.comm: Likewise. * doc/Makefile.sub: Likewise. * contrib/eqn2graph/Makefile.sub: Likewise. * contrib/gdiffmk/Makefile.sub: Likewise. * contrib/grap2graph/Makefile.sub: Likewise. * contrib/pic2graph/Makefile.sub: Likewise. * src/devices/xditview/Makefile.sub: Likewise. * src/preproc/eqn/Makefile.sub: Likewise. * src/roff/grog/Makefile.sub: Likewise. * src/roff/nroff/Makefile.sub: Likewise. * src/utils/afmtodit/Makefile.sub: Likewise. * src/utils/indxbib/Makefile.sub: Likewise. * tmac/Makefile.sub: Likewise.
* * All affected files: Update postal address of FSF.wl2005-05-261-1/+1
|
* * Makefile.comm (extraclean): Remove more junk files.wl2005-03-281-1/+1
|
* * src/roff/troff/input.cpp (string_iterator::fill): Protect againstwl2005-02-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | null pointer. * tmac/papersize.tmac: Convert `paper' string contents to lowercase. * configure: Regenerated. * NEWS: Updated. Integrate `pdfmark' into normal groff build system; install macro `pdfmark' packages, build and install `pdfroff', and PDF format documentation. * Makefile.comm: Add PDFDOCDIR. * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS, pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables. (unstall_dirs): Add pdfdocdir. * aclocal.m4: (GROFF_APPRESDIR_OPTION): use AC_HELP_STRING instead of AS_HELP_STRING. (GROFF_GHOSTSCRIPT_PREFS): New function; support `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS. (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT. (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up. (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option, set ALT_AWK_PROGS. (GROFF_AWK_PATH): New function; support `--with-awk' option, force use of GROFF_AWK_PREFS. (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc. * configure.ac: Add AC_PREREQ(2.56), GROFF_PDFDOC_PROGRAMS. Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and also by modified GROFF_HTML_PROGRAMS).
* Integrate gxditview into groff's standard directory hierarchy.wlemb2004-06-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xditview/*: Moved to ... * src/devices/xditview/*: Here. Moved DviChar.h and XFontName.h to src/include. Moved DviChar.c and XFontName.c to new directory src/libs/libxutil. Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c. Moved xtotroff.c to new directory src/utils/xtotroff. Provide proper Makefile.sub files (reusing the stuff from Imakefile.in). DESC renamed to DESC.in. Removed GXDitview-ad.h, INSTALL, Imakefile.in. Converted everything from K&R to ANSI C. Decorated with const where appropriate. Cast string constants with `String' and `char *' where appropriate. Made it compile with C++ (used as a C compiler). Removed other minor compiler warnings. * src/devices/xditview/device.c: Include config.h, string.h, and defs.h. Don't declare `exit', `strtok', `strchr', and `getenv'. (FONTPATH): Remove. * src/devices/xditview/font.c: Don't declare `XParseFontName' and `XFormatFontName'. * src/devices/xditview/xditview.c: Include config.h. Include stdio.h earlier. Protect declaration of `popen' and `pclose' with NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE. Replace `caddr_t' with `XtPointer'. (MakePromptFunc): New typedef. (DoPrint): Use RETSIGTYPE. (promptfunction): Change type to MakePromptFunc. (MakePrompt): Use MakePromptFunc for third argument. (xmalloc): Removed. * src/devices/xditview/ad2c: Add casts to `String'. * src/include/XFontName.h (XFontNameString): Don't use array notation. Add prototypes for `XParseFontName', `XFormatFontName', `XCompareFontName', and `XCopyFontName'. * src/include/Makefile.sub (HDRS): Add `DviChar.h' and `XFontName.h'. * src/utils/xtotroff/xtotroff.c: Include getopt.h. Don't declare `XParseFontName' and `XFormatFontName'. (xmalloc): Removed. (main): Remove `optind' and `optarg'. * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables (to select programs which need X). Make XDEVIDIRS depend on `FORCE'. (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for X support). (MDEFINES): Updated. (LIBDIRS): Use XLIBDIRS. (CPROGDIRS): Use XPROGDIRS. (DEVDIRS): Remove font directories for gxditview. (ALLDIRS, DISTDIRS): Add XDEVDIRS. (EXTRADIRS): Remove src/xditview. * Makefile.sub (DISCLEANFILES): Updated. * Makefile.comm (LIBXUTIL): New variable. (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS. (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS. * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS. * aclocal.m4 (GROFF_X11): New function. * configure.ac: Call GROFF_X11. Don't create src/xditview/Imakefile. Don't emit notice how to build gxditview. * configure: Regenerated. * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
* * Makefile.comm (install_dev, uninstall_dev): Protect `for' loopswlemb2004-03-101-4/+4
| | | | against empty argument. Problem reported by <cgd@broadcom.com>.
* * src/roff/troff/nroff.cpp (space_node::get_breakpoints,wlemb2004-01-051-1/+1
| | | | | | space_node::nbreaks): Protect against zero `next' field. Update copyright years.
* * contrib/mom/Makefile.sub: Fix last change to make it really work.wlemb2003-09-011-28/+30
| | | | | | | * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'. (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and $(DEVFILES) are not empty. * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
* * doc/Makefile.sub: Not all shells expand wildcards in the `for'wlemb2003-08-081-3/+3
| | | | | | | | | | | | | argument list. Use `ls' to expand, similar to autoconf. * Makefile.comm (install_dev, uninstall_dev): Protect `for' against empty argument lists. * doc/groff.texinfo: Improve documentation how vertical spacing and line breaks interact. Other minor fixes. * tmac/www.tmac: Initialize `www-htmlimage-gap'.
* * Makefile.in (SHELL): Define as @SHELL@.wlemb2003-07-011-1/+0
| | | | | | (mkinstalldirs): Use $(SHELL). (MDEFINES): Add $(SHELL). * Makefile.comm (SHELL): Removed.
* Renamed all `*.cc' files to `*.cpp'.wlemb2003-04-151-10/+10
| | | | Updated all configuration files, makefiles, and documentation.
* * Makefile.comm (depend.temp): Check location of YTABC.wlemb2003-04-071-1/+6
|
* * contrib/mom/Makefile.sub (GROFFBIN): New variable for groffwlemb2003-04-051-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * doc/Makefile.in (TROFFBIN): New variable for troff binary path. (GROFFBIN): New variable for groff binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (TROFF): Use TROFFBIN. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * doc/Makefile.sub (GROFFBIN): New variable for groff binary path. (groff_bin_path): Rename to GROFF_BIN_PATH. (GROFF): Use GROFFBIN and GROFF_BIN_PATH. * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS with INSTALL_SCRIPT. (uninstall_dev): Uninstall scripts from DEVSCRIPTS. * Makefile.dev (all): Depend on DEVSCRIPTS. (install_dev): Likewise. * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold scripts. * font/devps/Makefile.sub (DEVSCRIPTS): Likewise. (DEVGENSCRIPTS): New variable to hold generated scripts. * src/libs/libdriver/input.cc (IntArray::operator[], IntArray::get_data): Remove meaningless `const' in return value. * README.CVS: New file.
* * Makefile.in (LIBEXT): New variable to indicate the file extensionwlemb2003-03-171-3/+3
| | | | | | | | | | | | | | of library files. Computed heuristically from $(OBJEXT). (MDEFINES): Add $(LIBEXT). * Makefile.lib, Makefile.comm: Use it. * src/utils/pfbtops/pfbtops.c (get_text): New function. Split overlong lines into smaller chunks. (get_binary): New function. (main): Use them. * src/utils/pfbtops/pfbtops.man: Updated. * src/roff/groff/groff.man: Minor syntax fix.
* Add a site-specific font directory.wlemb2002-09-161-2/+2
| | | | | | | | | | | | | | | | | | | * Makefile.in (localfontdir, legacyfontdir): New variables. (fontpath): Use them. (MDEFINES, uninstall_dirs): Updated. * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'. Remove `FONTPATH' and `MACROPATH'. * src/roff/troff/troff.man, NEWS: Updated. * doc/groff.texinfo (Font Directories): New section. Other minor fixes. * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/preproc/grn/grn.man: Minor fixes. * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts): Remove unused variable.
* Use OBJEXT for the object file extension.wlemb2002-08-231-1/+7
| | | | | | | | * Makefile.comm (.SUFFIXES): Add .obj. (.cc.obj, .c.obj): New implicit rules. * Makefile.in (OBJEXT): New variable, initialized from autoconf. (MDEFINES): Add EXEEXT and OBJEXT. * */Makefile.sub: s/.o/.$(OBJEXT)/.
* * Makefile.comm (CLEANNOTSRCDIRADD): New target for files whichwlemb2002-06-031-35/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | should be removed only if builddir is not srcdir. (mostlyclean): Handle `CLEANNOTSRCDIRADD'. (clean): Depend on `mostlyclean'. (distclean): Depend on `clean'. (realclean, extraclean): Depend on `distclean'. (.y.cc, .y.o): Simplified. The output files are no longer written to srcdir but to builddir. * Makefile.in (MDEFINES): Add `version' and `revision'. (uninstall_dirs): Fix order of directories. * doc/Makefile.sub (version, revision): Removed. (CLEANADD): Removed grnexmpl.g, groff, groff-*. Added `HTMLDOCFILES'. (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*. * contrib/mom/Makefile.sub (uninstall_sub): Don't use `momdocdir' but `htmldocdir'. Add missing backslash. * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub, src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir' as prefix. * doc/texinfo.tex (\authortt): New macro. (\shortcontt): Define. (\titlepage): Set \tt to \authortt while defining \authorfont. (\appendixbox): New macro. (\chapmacro, \appendixentry): Use \appendixbox to get even indentation for letters. (\summarycontents): Set \tt. (\internalpagesize): Add two arguments for real paper width and height as needed by pdfTeX. (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex): Updated. (\tempdima, \tempdimb): New temporary dimensions. (\pagesizesyyy): Updated.
* Including the doc subdir into groff's Makefile system.wlemb2002-05-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aclocal.m4 (GROFF_INSTALL_INFO): New function. * configure.ac: Use it. Generate `doc/Makefile'. * configure: Regenerated. * Makefile.in (infodir, INSTALL_INFO): New variables. (MDEFINES, uninstall_dirs): Updated. (OTHERDIRS): Add `doc'. * Makefile.comm (CLEANDIRADD): New variable. (mostlyclean): Use it. * doc/Makefile.sub, doc/Makefile.in: New files. * doc/Makefile: Removed. * NEWS, INSTALL: Updated. * doc/homepage.ms: Renamed to ... * doc/webpage.ms: This. Use `.NHR'. * contrib/mom/Makefile.sub (momdocdir): Removed. (HTMLDOCFILES): Prepend `momdoc/'. (EXTRAEXAMPLEFILES): Removed. Added entries to... (EXAMPLEFILES): This. (.SUFFIXES, .mom.ps): New. (prepare_make_examples): Updated. (examples/*.ps): Removed; .mom.ps will handle this. (install_data): Updated.
* Integrating the `mom' macro package, contributed by Peter Schaffterwlemb2002-05-231-0/+3
| | | | | | | | | | | | | <df191@ncf.ca>. * contrib/mom/*: New subdirectory tree. * Makefile.in (docdir, exampledir, htmldocdir): New variables to be used for documentation files. (MDEFINES, uninstall_dirs): Use them. (OTHERDIRS): Add contrib/mom. * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and @HTMLDOCDIR@. * MANIFEST, NEWS: Updated.
* * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- thewlemb2002-03-231-0/+22
| | | | | | | | | | | internal .y.o rule took precendence over the .y.cc rule, compiling the yacc files with gcc instead of g++. * tmac/dvi.tmac: Add replacement font for `CB'. * tmac/doc.tmac: s/request/macro/ in messages. (doc-generic-macro): Improve error message. * tmac/groff_mdoc.man: Minor improvements.
* Use a config.h file.wlemb2001-08-191-0/+1
| | | | | | | | | | | | | | | | | | | | * src/include/lib.h: Include config.h. * All C files: Ditto (if necessary). * All C++ source and header files: Include lib.h first (if necessary). * src/include/config.hin: New file (autogenerated by autoheader). * stamp-h.in: New file. * configure.ac: Updated. * aclocal.m4: Add third parameters to AC_DEFINE macros. (GROFF_ARRAY_DELETE): Simplified. * Makefile.sub (DISTCLEANFILES): Updated. Added targets for remaking config.status, config.hin, config.h, stamp-h.in, and stamp-h. * configure: Regenerated. * NEWS: Updated.
* * src/preproc/pic/pic.y (format_number): Use do_sprintf().wlemb2001-08-181-2/+2
| | | | | | | | | | | | | | | (do_sprintf): Use snprintf(). * src/libs/snprintf/*: Added an snprintf module written by Mark Martinec. * src/libs/libgroff/Makefile.sub: Updated. * configure.ac: Add test for snprintf(). * Makefile.in: Updated. * configure: Regenerated. * src/preproc/html/pre-html.cc (make_message): Reactivate code which uses snprintf().
* Add system tmac directory (/usr/local/lib/groff/site-tmac).wlemb2000-11-081-0/+3
| | | | | | | | | | | | | | | | | | | | * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir). (uninstall_dirs): Add $(libdir), $(libprogramdir), and $(systemtmacdir). Use @libdir@. * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@. * tmac/Makefile.sub (install_data): Create $(systemtmacdir) and $(localtmacdir). (uninstall_sub): Use $(systemtmacdir) for wrapper macros. * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man, NEWS, doc/groff.texinfo: Updated and minor fixes. * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again. * tmac/Makefile.sub: Added `wrap' stuff again, but installing into $(systemtmacdir) since the wrapper files are platform-dependent. * doc/groff.texinfo: Fix typo.
* * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.wlemb2000-10-261-2/+0
| | | | | | | * tmac/Makefile.sub: Adapted to new macro names; removed `wrap' stuff since it is no longer needed. * README, PROBLEMS: Updated.
* Add local tmac directory (groff/site-tmac).wlemb2000-10-241-0/+1
| | | | | | | | | * Makefile.in: Add $(localtmacdir). (uninstall_dirs): Add $(localtmacdir). * Makefile.comm (.man.n): Add @LOCALMACRODIR@. * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local in $(localtmacdir). Create $(localtmacdir). * man/roff.man, src/roff/troff/troff.man, NEWS: Updated.
* Move hyphen.us to tmac directory.wlemb2000-10-231-0/+1
| | | | | | | | | | | | | | | | * src/roff/troff/hyphen.us: Removed. * src/tmac/hyphen.us: Added. * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated. Change installation structure for data files from .../groff/... to .../groff/<version><revision>/... to be conform with other GNU programs. * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub, doc/Makefile, src/xditview/Imakefile.in: Implement it. * NEWS: Document it. * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
* Implement $GROFF_BIN_PATH environment variable (which defaults towlemb2000-10-221-1/+2
| | | | | | | | | | | | | | | | | $bindir) used for child programs of groff and similar wrappers. * gendefs.sh: Improve documentation. * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h), src/preproc/eqn/Makefile.sub (neqn), src/roff/nroff/Makefile.sub (nroff): Add $(bindir). * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement $GROFF_BIN_PATH. * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and $GROFF_PATH__ (the latter for communication with troff). * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if set. * src/roff/nroff/nroff.man, src/roff/groff/groff.man, doc/groff.texinfo: Document it.
* * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.wlemb2000-06-181-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tfm::load, gf::load): Open tfm and gf files in binary mode: these are binary files. (main): Support non-Posix systems with several different styles of slash characters in file names. * src/utils/pfbtops/pfbtops.c: #include nonposix.h. (main) [SET_BINARY]: Switch stdin into binary mode. * src/utils/indxbib/indxbib.cc: #include nonposix.h. (main): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. (main) [__MSDOS__]: If renaming the temporary index file fails because it has more than one dot in its trunk, replace the dot with an underscore and try again. (do_file): Use FOPEN_RB instead of "r". Skip every CR before a Newline. [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character. * src/utils/hpftodit/hpftodit.cc: #include nonposix.h. (File::File): Open the input file in binary mode. Strip CR characters from each CR-LF pair. (xbasename): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. * src/include/Makefile.sub (HDRS): Add nonposix.h. * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>. (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG) [!_POSIX_VERSION]: Define for traditional Unix systems. (real_output_file::real_output_file): Remove the MSVC-specific call to popen, use instead POPEN_WT, appropriately defined on nonposix.h. #include nonposix.h. (real_output_file::~real_output_file): Remove the MSVC-specific call to pclose, a suitable macro is now defined on nonposix.h. Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG and WEXITSTATUS instead of assuming traditional Unix interpretation of the status returned by pclose. * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific call to popen, use POPEN_RT instead (appropriately defined on nonposix.h). #include nonposix.h. (ps_bbox_request): Open the PostScript file in binary mode. Close the file after processing it. (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on nonposix.h. * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]: A version of run_pipeline that doesn't use `fork'. (signal_catcher) [__MSDOS__ || _WIN32]: New function. (system_shell_name, system_shell_dash_c) (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide the ugliness of testing DOS/Windows file names for equality, and support both stock shells and ports of Unix shells. * src/roff/groff/groff.cc: #include nonposix.h. (BSHELL): Definition moved to nonposix.h. (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C instead of a literal "-c". (xbasename): Support file names with several possible slash-type characters, as given by DIR_SEPS[] in nonposix.h. (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead of literal strings. * src/preproc/soelim/soelim.cc: #include nonposix.h. (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'. * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to pic_tab.h. * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h. * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to eqn_tab.h. * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h. * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If P_tmpdir is defined, use it instead of the literal "/tmp". (remove_tmp_files, add_tmp_file): New functions. (xtmpfile): Record temporary files and register an atexit function to delete them explicitly, instead of relying on the OS to do that, which doesn't work on non-Unix systems. * src/libs/libgroff/searchpath.cc: #include nonposix.h. (search_path::search_path): Use PATH_SEP instead of a literal colon. (search_path::command_line_dir): Ditto. (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS, to support non-Posix systems. * src/libc/libbib/search.cc: #include nonposix.h. (search_list::add_file): Open the file in binary mode. * src/libs/libbib/linear.cc: #include nonposix.h. (file_buffer::load): Remove r characters preceding n from the loaded buffer. * src/libs/libbib/index.cc: #include nonposix.h. (make_index_search_item): Open index_filename in O_BINARY mode. (index_search_item_iterator::get_tag): Ditto. Remove r characters before n characters. (index_search_item::check_files): Open files in binary mode. (index_search_item::munge_filename): Support DOS-style file names with backslashes and drive letters, use IS_ABSOLUTE. * src/devices/grops/ps.cc: #include nonposix.h. (main) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grolj4/lj4.cc: #include nonposix.h. (main) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grolbp/lbp.cc: #include nonposix.h (fill_pattern) [SET_BINARY]: Switch stdout to binary mode. * src/devices/grodvi/dvi.cc: #include nonposix.h. [_MSC_VER]: Remove inclusion of Windows-specific headers (done by nonposix.h). (main) [SET_BINARY]: Switch stdout to binary mode. [_MSC_VER]: Remove an explicit call to _setmode. * src/include/nonposix.h: New file. * Makefile.in (ENVSETUP): New variable, to set up case-sensitive operation when building with DJGPP. ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS)) ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use ENVSETUP. * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on MS-DOS. (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH, etc. can include a semi-colon on DOS/Windows. (depend.temp): Use depend1.temp instead of depend.temp1, to prevent files from overerwiting each other on 8+3 filesystems. * gendef.sh (t): Change definition to work with DOS/Windows. doc/groff.texinfo: Apart of some typo corrections, I also changed some index entris, to make them more non-ambiguous, and also put @ignore around some parts that are not yet written, to allow the Info output be readable.
* * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).wlemb2000-03-121-1/+1
|
* Initial revisionwlemb2000-02-061-0/+259