Update of /cvsroot/mingw/msys/packages/texinfo/4.3/util In directory sc8-pr-cvs1:/tmp/cvs-serv4095/util Added Files: Makefile.am Makefile.in README deref.c dir-example fix-info-dir fixfonts fixref.gawk gen-dir-node infosrch install-info-html install-info.c outline.gawk prepinfo.awk tex3patch texi-docstring-magic.el texi2dvi texindex.c Log Message: Pristine 4.3 --- NEW FILE: Makefile.am --- # $Id: Makefile.am,v 1.1 2002/12/05 21:07:19 earnie Exp $ # Makefile.am for texinfo/util. # Run automake in .. to produce Makefile.in from this. # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. bin_PROGRAMS = ginstall-info texindex bin_SCRIPTS = texi2dvi # Use `ginstall-info' in the definition of PROGRAMS and in dependencies # because automake generates an install-info target in every Makefile (a # bug, IMHO, but this is easier than patching Automake.) ginstall_info_SOURCES = install-info.c # Transform `ginstall-info' to `install-info' before applying any # user-specified name transformations. transform = s/ginstall-info/install-info/; @program_transform_name@ localedir = $(datadir)/locale INCLUDES = -I$(top_srcdir)/lib -I../intl -DLOCALEDIR=\"$(localedir)\" LDADD = ../lib/libtxi.a @LIBINTL@ # Most of these are for fun. The only one that's really supported is texi2dvi. # # automake.diff is necessary to apply if you change configure.ac, are # building from cvs, or otherwise need to run automake. Otherwise # install-info will be built on every make, and make distcleancheck will # fail. (These bugs have been reported [several times] to bug-automake.) # EXTRA_DIST = README deref.c dir-example fix-info-dir fixfonts \ fixref.gawk gen-dir-node infosrch install-info-html outline.gawk \ prepinfo.awk tex3patch texi-docstring-magic.el texi2dvi --- NEW FILE: Makefile.in --- # Makefile.in generated by automake 1.7.1 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # $Id: Makefile.in,v 1.1 2002/12/05 21:07:19 earnie Exp $ # Makefile.am for texinfo/util. # Run automake in .. to produce Makefile.in from this. # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ # Transform `ginstall-info' to `install-info' before applying any # user-specified name transformations. transform = s/ginstall-info/install-info/; @program_transform_name@ ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBS = @LIBS@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TERMLIBS = @TERMLIBS@ TEXINFO_MAINT_FALSE = @TEXINFO_MAINT_FALSE@ TEXINFO_MAINT_TRUE = @TEXINFO_MAINT_TRUE@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ bin_PROGRAMS = ginstall-info texindex bin_SCRIPTS = texi2dvi # Use `ginstall-info' in the definition of PROGRAMS and in dependencies # because automake generates an install-info target in every Makefile (a # bug, IMHO, but this is easier than patching Automake.) ginstall_info_SOURCES = install-info.c localedir = $(datadir)/locale INCLUDES = -I$(top_srcdir)/lib -I../intl -DLOCALEDIR=\"$(localedir)\" LDADD = ../lib/libtxi.a @LIBINTL@ # Most of these are for fun. The only one that's really supported is texi2dvi. # # automake.diff is necessary to apply if you change configure.ac, are # building from cvs, or otherwise need to run automake. Otherwise # install-info will be built on every make, and make distcleancheck will # fail. (These bugs have been reported [several times] to bug-automake.) # EXTRA_DIST = README deref.c dir-example fix-info-dir fixfonts \ fixref.gawk gen-dir-node infosrch install-info-html outline.gawk \ prepinfo.awk tex3patch texi-docstring-magic.el texi2dvi subdir = util mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = bin_PROGRAMS = ginstall-info$(EXEEXT) texindex$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) am_ginstall_info_OBJECTS = install-info.$(OBJEXT) ginstall_info_OBJECTS = $(am_ginstall_info_OBJECTS) ginstall_info_LDADD = $(LDADD) ginstall_info_DEPENDENCIES = ../lib/libtxi.a ginstall_info_LDFLAGS = texindex_SOURCES = texindex.c texindex_OBJECTS = texindex.$(OBJEXT) texindex_LDADD = $(LDADD) texindex_DEPENDENCIES = ../lib/libtxi.a texindex_LDFLAGS = SCRIPTS = $(bin_SCRIPTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/install-info.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/texindex.Po COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ DIST_SOURCES = $(ginstall_info_SOURCES) texindex.c DIST_COMMON = README Makefile.am Makefile.in SOURCES = $(ginstall_info_SOURCES) texindex.c all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu util/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ rm -f $(DESTDIR)$(bindir)/$$f; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ginstall-info$(EXEEXT): $(ginstall_info_OBJECTS) $(ginstall_info_DEPENDENCIES) @rm -f ginstall-info$(EXEEXT) $(LINK) $(ginstall_info_LDFLAGS) $(ginstall_info_OBJECTS) $(ginstall_info_LDADD) $(LIBS) texindex$(EXEEXT): $(texindex_OBJECTS) $(texindex_DEPENDENCIES) @rm -f texindex$(EXEEXT) $(LINK) $(texindex_LDFLAGS) $(texindex_OBJECTS) $(texindex_LDADD) $(LIBS) binSCRIPT_INSTALL = $(INSTALL_SCRIPT) install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_SCRIPTS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f $$d$$p; then \ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \ $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \ else :; fi; \ done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; for p in $$list; do \ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ rm -f $(DESTDIR)$(bindir)/$$f; \ done mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/install-info.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/texindex.Po@am__quote@ distclean-depend: -rm -rf ./$(DEPDIR) .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCC_TRUE@ fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`; \ @am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCC_TRUE@ fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'` uninstall-info-am: ETAGS = etags ETAGSFLAGS = CTAGS = ctags CTAGSFLAGS = tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(SCRIPTS) installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(bindir) install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-compile distclean-depend \ distclean-generic distclean-tags dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-binSCRIPTS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \ uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-depend distclean-generic distclean-tags distdir dvi \ dvi-am info info-am install install-am install-binPROGRAMS \ install-binSCRIPTS install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-binSCRIPTS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --- NEW FILE: README --- $Id: README,v 1.1 2002/12/05 21:07:19 earnie Exp $ texinfo/util/README Copyright (C) 2002 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. Assorted Texinfo-related programs and scripts. texindex, texi2dvi, and install-info get installed. The other items here are for your amusement and/or hacking pleasure. You may also be interested in a2ps, an ASCII->PostScript program which has a Texinfo style option. Available from http://www.inf.enst.fr/~demaille/a2ps/ and ftp://ftp.enst.fr/pub/unix/a2ps/. --- NEW FILE: deref.c --- /* * deref.c * * Make all texinfo references into the one argument form. * * Arnold Robbins * ar...@gn... * Written: December, 1991 * Released: November, 1998 * * Copyright, 1991, 1998 Arnold David Robbins * * DEREF is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * DEREF is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ /* * LIMITATIONS: * One texinfo cross reference per line. * Cross references may not cross newlines. * Use of fgets for input (to be fixed). */ #include <stdio.h> #include <ctype.h> #include <errno.h> /* for gcc on the 3B1, delete if this gives you grief */ extern int fclose(FILE *fp); extern int fprintf(FILE *fp, const char *str, ...); /* extern int sprintf(char *str, const char *fmt, ...); */ extern int fputs(char *buf, FILE *fp); extern char *strerror(int errno); extern char *strchr(char *cp, int ch); extern int strncmp(const char *s1, const char *s2, int count); extern int errno; void process(FILE *fp); void repair(char *line, char *ref, int toffset); int Errs = 0; char *Name = "stdin"; int Line = 0; char *Me; /* main --- handle arguments, global vars for errors */ int main(int argc, char **argv) { FILE *fp; Me = argv[0]; if (argc == 1) process(stdin); else for (argc--, argv++; *argv != NULL; argc--, argv++) { if (argv[0][0] == '-' && argv[0][1] == '\0') { Name = "stdin"; Line = 0; process(stdin); } else if ((fp = fopen(*argv, "r")) != NULL) { Name = *argv; Line = 0; process(fp); fclose(fp); } else { fprintf(stderr, "%s: can not open: %s\n", *argv, strerror(errno)); Errs++; } } return Errs != 0; } /* isref --- decide if we've seen a texinfo cross reference */ int isref(char *cp) { if (strncmp(cp, "@ref{", 5) == 0) return 5; if (strncmp(cp, "@xref{", 6) == 0) return 6; if (strncmp(cp, "@pxref{", 7) == 0) return 7; return 0; } /* process --- read files, look for references, fix them up */ void process(FILE *fp) { char buf[BUFSIZ]; char *cp; int count; while (fgets(buf, sizeof buf, fp) != NULL) { Line++; cp = strchr(buf, '@'); if (cp == NULL) { fputs(buf, stdout); continue; } do { count = isref(cp); if (count == 0) { cp++; cp = strchr(cp, '@'); if (cp == NULL) { fputs(buf, stdout); goto next; } continue; } /* got one */ repair(buf, cp, count); break; } while (cp != NULL); next: ; } } /* repair --- turn all texinfo cross references into the one argument form */ void repair(char *line, char *ref, int toffset) { int braces = 1; /* have seen first left brace */ char *cp; ref += toffset; /* output line up to and including left brace in reference */ for (cp = line; cp <= ref; cp++) putchar(*cp); /* output node name */ for (; *cp && *cp != '}' && *cp != ',' && *cp != '\n'; cp++) putchar(*cp); if (*cp != '}') { /* could have been one arg xref */ /* skip to matching right brace */ for (; braces > 0; cp++) { switch (*cp) { case '@': cp++; /* blindly skip next character */ break; case '{': braces++; break; case '}': braces--; break; case '\n': case '\0': Errs++; fprintf(stderr, "%s: %s: %d: mismatched braces\n", Me, Name, Line); goto out; default: break; } } out: ; } putchar('}'); if (*cp == '}') cp++; /* now the rest of the line */ for (; *cp; cp++) putchar(*cp); return; } /* strerror --- return error string, delete if in your library */ char * strerror(int errno) { static char buf[100]; extern int sys_nerr; extern char *sys_errlist[]; if (errno < sys_nerr && errno >= 0) return sys_errlist[errno]; sprintf(buf, "unknown error %d", errno); return buf; } --- NEW FILE: dir-example --- This is the directory file `dir' a.k.a. `DIR', which contains the topmost node of the Info hierarchy. This particular dir file is merely made available for your hacking pleasure, not official or standard in any way. If it doesn't make sense to you, or you don't like it, ignore it. If you have dir entries for Texinfo manuals you'd like to be added here, please send them to ka...@gn.... $Id: dir-example,v 1.1 2002/12/05 21:07:19 earnie Exp $ File: dir, Node: Top, This is the top of the INFO tree. This is the Info main menu (aka directory node). A few useful Info commands: `q' quits; `?' lists all Info commands; `h' starts the Info tutorial; `mTexinfo RET' visits the Texinfo manual, etc. Not all of the topics shown below may be available on this system. * Menu: GNU Packages * Make: (make). Remake files automatically. * accounting: (psacct). GNU process accounting suite. * Bash: (bash). Bourne-Again SHell. * Coreutils: (coreutils). Core (file, text, shell) utilities. * Cpio: (cpio). Copy-in-copy-out archiver. * DC: (dc). Postfix desk calculator. * Diff: (diff). Comparing and merging programs. * Ed: (ed). Line editor. * Emacs: (emacs). Extensible self-documenting text editor. * File utilities: (fileutils). GNU file utilities. * Finding files: (find). Operating on files matching certain criteria. * Font utilities: (fontu). Programs for font manipulation. * Gawk: (gawk). A text scanning and processing language. * Gawkinet: (gawkinet). TCP/IP Internetworking With `gawk'. * Gcal: (gcal). GNU calendar program. * Groff: (groff). The GNU troff document formatting system. * Gzip: (gzip). General (de)compression. * Identifier DB: (id-utils). Identifier database utilities. * Ispell: (ispell). Interactive spelling corrector. * M4: (m4). Macro processor. * Ptx: (ptx). Permuted index generator. * Shar utilities: (sharutils). Shell archiver, uudecode/uuencode. * Shell utilities: (sh-utils). GNU shell utilities. * tar: (tar). Making tape (or disk) archives. * Text utilities: (textutils). GNU text utilities. * Time: (time). Measuring program resource usage. * UUCP: (uucp). Copying between machines, offline. * Wdiff: (wdiff). Word-by-word comparison. * Wget: (wget). URL download. Text creation and manipulation * sed: (sed). Stream EDitor. Texinfo documentation system * Info: (info). Documentation browsing system. * Texinfo: (texinfo). The GNU documentation format. * info standalone: (info-stnd). Standalone Info reader. * infokey: (info-stnd)Invoking infokey. Compile Info customizations. * install-info: (texinfo)Invoking install-info. Updating info/dir entries. * makeinfo: (texinfo)makeinfo options. Translate Texinfo source. * texi2dvi: (texinfo)Format with texi2dvi. Printing Texinfo documentation. * texindex: (texinfo)Format with tex/texindex. Sorting Texinfo index files. Printing Tools * a2ps: (a2ps). PostScript Generating Utility * PreScript: (a2ps) PreScript. Input language for a2ps * card: (a2ps) card. Print Reference Cards * fixps: (a2ps) fixps. Fixing Some Ill Designed PostScript Files * fixnt: (a2ps) fixnt. Fixing Microsoft NT PostScript Files * pdiff: (a2ps) pdiff. Produce Pretty Comparison of Files * psmandup: (a2ps) psmandup. Printing Duplex on Simplex Printers * psset: (a2ps) psset. Inserting calls to setpagedevice GNU programming tools * As: (as). Assembler. * Autoconf: (autoconf). Create source code configuration scripts * Binutils: (binutils). ar/copy/objdump/nm/size/strip/ranlib. * CVS: (cvs). Concurrent versions system for source control. * Cpp: (cpp). The GNU C preprocessor. * Cpplib: (cppinternals). Cpplib internals. * DejaGnu: (dejagnu). Testing framework. * automake: (automake). Making Makefile.in's * bison: (bison). GNU parser generator (yacc replacement). * egcs: (egcs). Experimental GNU C compiler. * Flex: (flex). A fast scanner generator. * g77: (g77). GNU Fortran 77 compiler. * gcc: (gcc). The GNU Compiler Collection. * gccint: (gccint). Internals of the GNU Compiler Collection. * GDB: (gdb). Source-level debugger for C and C++. * Gasp: (gasp). GNU Assembler preprocessor. * Gperf: (gperf). Perfect hash function generator. * Gprof: (gprof). Profiler. * Guile Reference: (guile). The Guile reference manual. * Indent: (indent). Prettyprinter for programs. * Ld: (ld). Linker. * Libtool: (libtool). Generic library support script. * R FAQ: (R-FAQ). The R statistical language FAQ. GNU Emacs * Elisp: (elisp). GNU Emacs Lisp reference manual. * Intro Elisp: (emacs-lisp-intro). Introduction to Elisp programming. * AUC TeX: (auctex). Editing (La)TeX files. * Calc: (calc). Calculator and more. * CC mode: (ccmode). Editing C, C++, Objective C, and Java. * Common Lisp: (cl). Partial Common Lisp support for Emacs Lisp. * Dired-x: (dired-x). Extra directory editor features. * Edebug: (edebug). Source-level debugger for Emacs Lisp. * Ediff: (ediff). Comprehensive visual interface to diff & patch. * EDB: (edb). Database for Emacs. * Forms: (forms). Fill-in-the-form data entry. * Gmhist: (gmhist). Generic minibuffer history. * GNUS: (gnus). Netnews reading and posting. * Mailcrypt: (mailcrypt). Use PGP in Emacs. * MH-E: (mh-e). Emacs interface to the MH mail system. * PCL-CVS: (pcl-cvs). Emacs front end to CVS. * Supercite: (sc). Supercite for including other people's words. * VIP: (vip). vi emulation. * VIPER: (viper). The new VI-emulation mode in Emacs-19.29. * VM: (vm). Mail reader. * W3: (w3). WWW browser. GNU Gettext Utilities * Gettext: (gettext). GNU gettext utilities. * gettextize: (gettext)gettextize Invocation. Prepare a package for gettext. * msgfmt: (gettext)msgfmt Invocation. Make MO files out of PO files. * msgmerge: (gettext)msgmerge Invocation. Update two PO files into one. * xgettext: (gettext)xgettext Invocation. Extract strings into a PO file. GNU programming support * Configure: (configure). Cygnus configure. * Gnats: (gnats). Cygnus bug tracking system. * Remsync: (remsync). Remote synchronization of directory trees. * Send PR: (send-pr). Cygnus bug reporting for Gnats. * help2man: (help2man). Automatic manual page generation. GNU libraries * Annotate: (annotate). High-level GDB to GUI's. * BFD: (bfd). Binary file descriptors for object file IO. * CVS protocol: (cvsclient). CVS client/server protocol specification. * GDB library: (libgdb). Application programming interface to GDB. * GDBM: (gdbm). Hashed databases. * GDK: (gdk). General drawing kit. * GTK: (gtk). GIMP toolkit. * History: (history). Recall previous lines of input. * Iostream: (iostream). C++ input/output. * Libc: (libc). C library. * Libg++: (libg++). C++ classes. * Mmalloc: (mmalloc). Memory-mapped malloc. * Readline: (readline). General command-line interface. * Regex: (regex). Regular expressions. * Termcap: (termcap). All about /etc/termcap. GNU programming documentation * GDB internals: (gdbint). Debugger internals. * Ld internals: (ldint). GNU linker internals. * Maintaining: (maintain). Maintaining GNU software. * Source config: (cfg-paper). Some theory on configuring source packages. * Stabs: (stabs). Symbol table debugging information format. GNU organization * Maintain: (maintain). GNU maintainer guidelines. * Standards: (standards). GNU coding standards. * Tasks: (tasks). GNU task list. GNU music project * LilyPond: (lilypond). The GNU music typesetter. * LilyPond internals: (lilypond-internals). LilyPond internals. * ly2dvi: (lilypond)Invoking ly2dvi:: Titling LilyPond scores. * convert-ly: (lilypond)Invoking convert-ly:: Older LilyPond versions. * midi2ly: (lilypond)Invoking midi2ly:: Importing MIDI. * etf2ly: (lilypond)Invoking etf2ly:: Importing Finale. * abc2ly: (lilypond)Invoking abc2ly:: Importing ABC. * pmx2ly: (lilypond)Invoking pmx2ly:: Importing PMX. * musedata2ly: (lilypond)Invoking musedata2ly::Importing Musedata. * mup2ly: (lilypond)Invoking mup2ly:: Importing MUP. TeX * Afm2tfm: (dvips)Invoking afm2tfm. Making Type 1 fonts available to TeX. * Dvips: (dvips). DVI-to-PostScript translator. * Eplain: (eplain). Expanding on plain TeX. * Kpathsearch: (kpathsea). File lookup along search paths. * LaTeX: (latex). LaTeX. * MakeIndex: (makeindex). Index creation for TeX. * Naming fonts: (fontname). Filenames for TeX fonts. * TDS: (tds). Standard TeX directory structure. * TeXDraw: (texdraw). Drawing PostScript diagrams within TeX. * Web2c: (web2c). TeX, Metafont, and their companion programs. DOS * GNUish: (gnuish). GNU utilities for DOS. * Mtools: (mtools). Access DOS disks from Unix. Other things * Amd: (am-utils). Filesystem automounter. * CMUCL: (cmu-user). CMU Common Lisp. * File headers: (filehdr). Bibliographic information for computer files. * GCP: (gcp). Game club protocol. * GIMP: (pdb). The GIMP procedural database. * HTML: (snafu). Hypertext Markup Language 2.0 specification. * Jargon: (jargon). The jargon file. * JED: (jed). JED editor documentation. * octave: (octave). Octave - A language for numerical computation. * Perl: (perl). Practical extraction and report language. * PRCS: (prcs). Project revision control system. * Screen: (screen). Terminal multiplexer. Individual utilities * aclocal: (automake)Invoking aclocal. Generating aclocal.m4 * aid: (id-utils)aid invocation. Matching strings. * ar: (binutils)ar. Create/modify/extract archives. * at-pr: (gnats)at-pr. Bug report timely reminders. * autoconf: (autoconf)autoconf Invocation. How to create configuration scripts * autoheader: (autoconf)autoheader Invocation. How to create configuration templates * autom4te: (autoconf)Invoking autom4te. The Autoconf executables backbone * autoreconf: (autoconf)autoreconf Invocation. Remaking multiple `configure' scripts * autoscan: (autoconf)autoscan Invocation. Semi-automatic `configure.ac' writing * autoupdate: (autoconf)autoupdate Invocation. Automatic update of `configure.ac' * awk: (gawk)Invoking gawk. Text scanning and processing. * basename: (sh-utils)basename invocation. Strip directory and suffix. * bibtex: (web2c)BibTeX invocation. Maintaining bibliographies. * bzip2: (bzip2). (de)compression. * c++filt: (binutils)c++filt. Demangle C++ symbols. * cat: (textutils)cat invocation. Concatenate and write files. * chgrp: (fileutils)chgrp invocation. Change file groups. * chmod: (fileutils)chmod invocation. Change file permissions. * chown: (fileutils)chown invocation. Change file owners/groups. * chroot: (sh-utils)chroot invocation. Specify the root directory. * cksum: (textutils)cksum invocation. Print POSIX CRC checksum. * cmp: (diff)Invoking cmp. Character-by-character diff. * comm: (textutils)comm invocation. Compare sorted files by line. * config.status: (autoconf)config.status Invocation. Recreating a configuration * configure: (autoconf)configure Invocation. Configuring a package * cp: (fileutils)cp invocation. Copy files. * csplit: (textutils)csplit invocation. Split by context. * cut: (textutils)cut invocation. Print selected parts of lines. * date: (sh-utils)date invocation. Print/set system date and time. * dd: (fileutils)dd invocation. Copy and convert a file. * df: (fileutils)df invocation. Report filesystem disk usage. * diff3: (diff)Invoking diff3. Three-way diff. * dir: (fileutils)dir invocation. List directories briefly. * dircolors: (fileutils)dircolors invocation. Color setup for ls. * dirname: (sh-utils)dirname invocation. Strip non-directory suffix. * dmp: (web2c)Dmp invocation. Troff->MPX (MetaPost pictures). * du: (fileutils)du invocation. Report on disk usage. * dvicopy: (web2c)DVIcopy invocation. Virtual font expansion * dvitomp: (web2c)DVItoMP invocation. DVI to MPX (MetaPost pictures). * dvitype: (web2c)DVItype invocation. DVI to human-readable text. * echo: (sh-utils)echo invocation. Print a line of text. * edit-pr: (gnats)Invoking edit-pr. Changing bugs. * eid: (id-utils)eid invocation. Invoking an editor on matches. * emacsclient: (emacs)Emacs Server. Connecting to a running Emacs. * emacsserver: (emacs)Emacs Server. Connecting to a running Emacs. * env: (sh-utils)env invocation. Modify the environment. * etags: (emacs)Create Tags Table. Creating a TAGS table. * expand: (textutils)expand invocation. Convert tabs to spaces. * expr: (sh-utils)expr invocation. Evaluate expressions. * factor: (sh-utils)factor invocation. Print prime factors * false: (sh-utils)false invocation. Do nothing, unsuccessfully. * fid: (id-utils)fid invocation. Listing a file's identifiers. * file-pr: (gnats)file-pr. Processing incoming traffic. * find: (find)Invoking find. Finding and acting on files. * fmt: (textutils)fmt invocation. Reformat paragraph text. * fold: (textutils)fold invocation. Wrap long input lines. * gcal2txt: (gcal)Invoking gcal2txt. Calendar resource to text file. * gftodvi: (web2c)GFtoDVI invocation. Generic font proofsheets. * gftopk: (web2c)GFtoPK invocation. Generic to packed fonts. * gftype: (web2c)GFtype invocation. GF to human-readable text. * gid: (id-utils)gid invocation. Listing all matching lines. * git: (git). GNU interactive tools. * groups: (sh-utils)groups invocation. Print group names a user is in. * gunzip: (gzip)Overview. Decompression. * head: (textutils)head invocation. Output the first part of files. * hostname: (sh-utils)hostname invocation. Print or set system name. * id: (sh-utils)id invocation. Print real/effective uid/gid. * idx: (id-utils)idx invocation. Testing mkid scanners. * ifnames: (autoconf)ifnames Invocation. Listing the conditionals in source code * iid: (id-utils)iid invocation. Interactive complex queries. * inimf: (web2c)inimf invocation. Initial Metafont. * inimp: (web2c)inimp invocation. Initial MetaPost. * initex: (web2c)initex invocation. Initial TeX. * install: (fileutils)install invocation. Copy and change attributes. * join: (textutils)join invocation. Join lines on a common field. * kpsewhich: (kpathsea)Invoking kpsewhich. TeX file searching. * libtoolize: (libtool)Invoking libtoolize. Adding libtool support. * lid: (id-utils)lid invocation. Matching identifier patterns. * ln: (fileutils)ln invocation. Make links between files. * locate: (find)Invoking locate. Finding files in a database. * logname: (sh-utils)logname invocation. Print current login name. * ls: (fileutils)ls invocation. List directory contents. * mail-files: (sharutils)mail-files invocation. Send files to remote site. * mailshar: (sharutils)mailshar invocation. Make and send a shell archive. * makempx: (web2c)MakeMPX invocation. MetaPost label typesetting. * maketexmf: (kpathsea)MakeTeX scripts. MF source generation. * maketexpk: (kpathsea)MakeTeX scripts. PK bitmap generation. * maketextex: (kpathsea)MakeTeX scripts. TeX source generation. * maketextfm: (kpathsea)MakeTeX scripts. TeX font metric generation. * md5sum: (textutils)md5sum invocation. Print or check message-digests. * mf: (web2c)mf invocation. Creating typeface families. * mft: (web2c)MFT invocation. Prettyprinting Metafont source. * mgetty: (mgetty). Faxes, voicemail and more. * mkdir: (fileutils)mkdir invocation. Create directories. * mkfifo: (fileutils)mkfifo invocation. Create FIFOs: (named pipes). * mkid: (id-utils)mkid invocation. Creating an ID database. * mknod: (fileutils)mknod invocation. Create special files. * mp: (web2c)mp invocation. Creating technical diagrams. * mpto: (web2c)MPto invocation. MetaPost label extraction. * mv: (fileutils)mv invocation. Rename files. * newer: (web2c)Newer invocation. Compare modification times. * nice: (sh-utils)nice invocation. Modify scheduling priority. * nl: (textutils)nl invocation. Number lines and write files. * nlmconv: (binutils)nlmconv. Convert object to NetWare LM. * nm: (binutils)nm. List symbols in object files. * nohup: (sh-utils)nohup invocation. Immunize to hangups. * objcopy: (binutils)objcopy. Copy/translate object files. * objdump: (binutils)objdump. Display info from object files. * od: (textutils)od invocation. Dump files in octal, etc. * paste: (textutils)paste invocation. Merge lines of files. * patch: (diff)Invoking patch. Automatically applying diffs. * patgen: (web2c)Patgen invocation. Creating hyphenation patterns. * pathchk: (sh-utils)pathchk invocation. Check file name portability. * pid: (id-utils)pid invocation. Looking up filenames. * pktogf: (web2c)PKtoGF invocation. Packed to generic fonts. * pktype: (web2c)PKtype invocation. PK to human-readable text. * pltotf: (web2c)PLtoTF invocation. Property list to TFM. * pooltype: (web2c)Pooltype invocation. Display WEB pool files. * pr-addr: (gnats)pr-addr. Bug report address retrieval. * pr-edit: (gnats)pr-edit. The edit-pr driver. * pr: (textutils)pr invocation. Paginate or columnate files. * printenv: (sh-utils)printenv invocation. Print environment variables. * printf: (sh-utils)printf invocation. Format and print data. * pwd: (sh-utils)pwd invocation. Print working directory. * query-pr: (gnats)Invoking query-pr. Bug searching/reporting. * queue-pr: (gnats)queue-pr. Handling incoming traffic. * ranlib: (binutils)ranlib. Index archive file contents. * rm: (fileutils)rm invocation. Remove files. * rmdir: (fileutils)rmdir invocation. Remove empty directories. * sdiff: (diff)Invoking sdiff. Interactively merge files. * send-pr: (gnats)Invoking send-pr. Submitting bugs. * seq: (sh-utils)seq invocation. Print numeric sequences * shar: (sharutils)shar invocation. Create shell archive. * size: (binutils)size. List object file section sizes. * sleep: (sh-utils)sleep invocation. Delay for a specified time. * sort: (textutils)sort invocation. Sort text files. * split: (textutils)split invocation. Split into fixed-size pieces. * strings: (binutils)strings. List printable strings. * strip: (binutils)strip. Discard symbols. * stty: (sh-utils)stty invocation. Print/change terminal settings. * su: (sh-utils)su invocation. Modify user and group id. * sum: (textutils)sum invocation. Print traditional checksum. * sync: (fileutils)sync invocation. Synchronize memory and disk. * tabs: (tput)Invoking tabs. Tab settings. * tac: (textutils)tac invocation. Reverse files. * tail: (textutils)tail invocation. Output the last part of files. * tangle: (web2c)Tangle invocation. WEB to Pascal. * tcal: (gcal)Invoking tcal. Run Gcal with tomorrow's date. * tee: (sh-utils)tee invocation. Redirect to multiple files. * test: (sh-utils)test invocation. File/string tests. * testsuite: (autoconf)testsuite Invocation. Running an Autotest test suite * tex: (web2c)tex invocation. Typesetting. * tftopl: (web2c)TFtoPL invocation. TFM -> property list. * touch: (fileutils)touch invocation. Change file timestamps. * tput: (tput)Invoking tput. Termcap in shell scripts. * tr: (textutils)tr invocation. Translate characters. * true: (sh-utils)true invocation. Do nothing, successfully. * tty: (sh-utils)tty invocation. Print terminal name. * txt2gcal: (gcal)Invoking txt2gcal. Calendar text to resource file. * umb-scheme: (umb-scheme). UMB Scheme Interpreter. * uname: (sh-utils)uname invocation. Print system information. * unexpand: (textutils)unexpand invocation. Convert spaces to tabs. * uniq: (textutils)uniq invocation. Uniqify files. * unshar: (sharutils)unshar invocation. Extract from shell archive. * updatedb: (find)Invoking updatedb. Building the locate database. * users: (sh-utils)users invocation. Print current user names. * vdir: (fileutils)vdir invocation. List directories verbosely. * vftovp: (web2c)VFtoVP invocation. Virtual font -> virtual pl. * view-pr: (gnats)Invoking view-pr. Showing bug reports. * virmf: (web2c)virmf invocation. Virgin Metafont. * virmp: (web2c)virmp invocation. Virgin MetaPost. * virtex: (web2c)virtex invocation. Virgin TeX. * vptovf: (web2c)VPtoVF invocation. Virtual pl -> virtual font. * wc: (textutils)wc invocation. Byte, word, and line counts. * weave: (web2c)Weave invocation. WEB to TeX. * who: (sh-utils)who invocation. Print who is logged in. * whoami: (sh-utils)whoami invocation. Print effective user id. * xargs: (find)Invoking xargs. Operating on many files. * yes: (sh-utils)yes invocation. Print a string indefinitely. * zcat: (gzip)Overview. Decompression to stdout. * zsh: (zsh). An enhanced Bourne shell. --- NEW FILE: fix-info-dir --- #!/bin/sh #fix-info-dir (GNU texinfo) VERSION=1.1 #Copyright (C) 1998 Free Software Foundation, Inc. #fix-info-dir comes with NO WARRANTY, to the extent permitted by law. #You may redistribute copies of fix-info-dir #under the terms of the GNU General Public License. #For more information about these matters, see the files named COPYING." #fix-info-dir was derived from update-info and gen-dir-node # The skeleton file contains info topic names in the # order they should appear in the output. There are three special # lines that alter the behavior: a line consisting of just "--" causes # the next line to be echoed verbatim to the output. A line # containing just "%%" causes all the remaining filenames (wildcards # allowed) in the rest of the file to be ignored. A line containing # just "!!" exits the script when reached (unless preceded by a line # containing just "--"). #Author: Richard L. Hawes, rh...@dm.... # ###SECTION 1### Constants set -h 2>/dev/null # ENVIRONMENT if test -z "$TMPDIR"; then TMPDIR="/usr/tmp" fi if test -z "$LINENO"; then LINENO="0" fi MENU_BEGIN='^\*\([ ]\)\{1,\}Menu:' MENU_ITEM='^\* ([^ ]).*:([ ])+\(' MENU_FILTER1='s/^\*\([ ]\)\{1,\}/* /' MENU_FILTER2='s/\([ ]\)\{1,\}$//g' TMP_FILE1="${TMPDIR}/fx${$}.info" TMP_FILE2="${TMPDIR}/fy${$}.info" TMP_FILE_LIST="$TMP_FILE1 $TMP_FILE2" TRY_HELP_MSG="Try --help for more information" # ###SECTION 100### main program #variables set by options CREATE_NODE="" DEBUG=":" MODE="" # Total="0" Changed="" while test "$*"; do case "$1" in -c|--create) CREATE_NODE="y";; --debug) set -eux; DEBUG="set>&2";; -d|--delete) MODE="Detect_Invalid";; +d);; --version) cat<<VersionEOF fix-info-dir (GNU Texinfo) $VERSION Copyright (C) 1998 Free Software Foundation, Inc. fix-info-dir comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of fix-info-dir under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING. Author: Richard L. Hawes VersionEOF exit;; --help) cat<<HelpEndOfFile Usage: fix-info-dir [OPTION]... [INFO_DIR/[DIR_FILE]] [SKELETON] It detects and inserts missing menu items into the info dir file. The info dir must be the current directory. Options: -c, --create create a new info node -d, --delete delete invalid menu items (ignore missing menu items) --debug print debug information to standard error path --help print this help message and exit --version print current version and exit Backup of the info node has a '.old' suffix added. This is a shell script. Environment Variables: TMPDIR Email bug reports to bug...@gn.... HelpEndOfFile exit;; [-+]*) echo "$0:$LINENO: \"$1\" is not a valid option">&2 echo "$TRY_HELP_MSG">&2 exit 2;; *) break;; esac shift done ORIGINAL_DIR=`pwd` if test "$#" -gt "0"; then INFO_DIR="$1" shift else INFO_DIR=$DEFAULT_INFO_DIR fi if test ! -d "${INFO_DIR}"; then DIR_FILE=`basename ${INFO_DIR}`; INFO_DIR=`dirname ${INFO_DIR}`; else DIR_FILE="dir" fi cd "$INFO_DIR"||exit if test "$CREATE_NODE"; then if test "$#" -gt "0"; then if test `expr $1 : /` = '1'; then SKELETON="$1" else SKELETON="$ORIGINAL_DIR/$1" fi if test ! -r "$SKELETON" -a -f "$SKELETON"; then echo "$0:$LINENO: $SKELETON is not readable">&2 exit 2 fi shift else SKELETON=/dev/null fi else if test ! -f "$DIR_FILE"; then echo "$0:$LINENO: $DIR_FILE is irregular or nonexistant">&2 exit 2 elif test ! -r "$DIR_FILE"; then echo "$0:$LINENO: $DIR_FILE is not readable">&2 exit 2 elif test ! -w "$DIR_FILE"; then echo "$0:$LINENO: $DIR_FILE is not writeable">&2 exit 2 fi fi if test "$#" -gt "0"; then echo "$0:$LINENO: Too many parameters">&2 echo "$TRY_HELP_MSG">&2 exit 2 fi if test -f "$DIR_FILE"; then cp "$DIR_FILE" "$DIR_FILE.old" echo "Backed up $DIR_FILE to $DIR_FILE.old." fi if test "$CREATE_NODE"; then if test "$MODE"; then echo "$0:$LINENO: ERROR: Illogical option combination: -d -c">&2 echo "$TRY_HELP_MSG">&2 exit 2 fi echo "Creating new Info Node: `pwd`/$DIR_FILE" Changed="y" { ### output the dir header echo "-*- Text -*-" echo "This file was generated automatically by $0." echo "This version was generated on `date`" echo "by `whoami`@`hostname` for `pwd`" cat<<DIR_FILE_END_OF_FILE This is the file .../info/$DIR_FILE, which contains the topmost node of the Info hierarchy. The first time you invoke Info you start off looking at that node, which is ($DIR_FILE)Top. File: $DIR_FILE Node: Top This is the top of the INFO tree This (the Directory node) gives a menu of major topics. Typing "q" exits, "?" lists all Info commands, "d" returns here, "h" gives a primer for first-timers, "mEmacs<Return>" visits the Emacs topic, etc. In Emacs, you can click mouse button 2 on a menu item or cross reference to select it. * Menu: The list of major topics begins on the next line. DIR_FILE_END_OF_FILE ### go through the list of files in the skeleton. If an info file ### exists, grab the ENTRY information from it. If an entry exists ### use it, otherwise create a minimal $DIR_FILE entry. # Read one line from the file. This is so that we can echo lines with # whitespace and quoted characters in them. while read fileline; do # flag fancy features if test ! -z "$echoline"; then # echo line echo "$fileline" echoline="" continue elif test "${fileline}" = "--"; then # echo the next line echoline="1" continue elif test "${fileline}" = "%%"; then # skip remaining files listed in skeleton file skip="1" continue elif test "${fileline}" = "!!"; then # quit now break fi # handle files if they exist for file in $fileline""; do fname= if test -z "$file"; then break fi # Find the file to operate upon. if test -r "$file"; then fname="$file" elif test -r "${file}.info"; then fname="${file}.info" elif test -r "${file}.gz"; then fname="${file}.gz" elif test -r "${file}.info.gz"; then fname="${file}.info.gz" else echo "$0:$LINENO: can't find info file for ${file}?">&2 continue fi # if we found something and aren't skipping, do the entry if test "$skip"; then continue fi infoname=`echo $file|sed -e 's/.info$//'` entry=`zcat -f $fname|\ sed -e '1,/START-INFO-DIR-ENTRY/d'\ -e '/END-INFO-DIR-ENTRY/,$d'` if [ ! -z "${entry}" ]; then echo "${entry}" else echo "* ${infoname}: (${infoname})." fi Total=`expr "$Total" + "1"` done done }>$DIR_FILE<$SKELETON fi trap ' eval "$DEBUG"; rm -f $TMP_FILE_LIST; exit ' 0 trap ' rm -f $TMP_FILE_LIST exit ' 1 trap ' rm -f $TMP_FILE_LIST echo "$0:$LINENO: received INT signal.">&2 exit ' 2 trap ' rm -f $TMP_FILE_LIST echo "$0:$LINENO: received QUIT signal.">&2 exit ' 3 sed -e "1,/$MENU_BEGIN/d" -e "$MENU_FILTER1" -e "$MENU_FILTER2"<$DIR_FILE\ |sed -n -e '/\* /{ s/).*$//g s/\.gz$// s/\.info$// s/^.*(//p }'|sort -u>$TMP_FILE1 ls -F|sed -e '/\/$/d' -e '/[-.][0-9]/d'\ -e "/^$DIR_FILE\$/d" -e "/^$DIR_FILE.old\$/d"\ -e 's/[*@]$//' -e 's/\.gz$//' -e 's/\.info$//'|sort>$TMP_FILE2 if test -z "$MODE"; then #Detect Missing DONE_MSG="total menu item(s) were inserted into `pwd`/$DIR_FILE" for Info_Name in `comm -13 $TMP_FILE1 $TMP_FILE2`; do if test -r "$Info_Name"; then Info_File="$Info_Name" elif test -r "${Info_Name}.info"; then Info_File="${Info_Name}.info" elif test -r "${Info_Name}.gz"; then Info_File="${Info_Name}.gz" elif test -r "${Info_Name}.info.gz"; then Info_File="${Info_Name}.info.gz" else echo "$0:$LINENO: can't find info file for ${Info_Name}?">&2 continue fi Changed="y" if install-info $Info_File $DIR_FILE; then Total=`expr "$Total" + "1"` fi done else # Detect Invalid DONE_MSG="total invalid menu item(s) were removed from `pwd`/$DIR_FILE" for Info_Name in `comm -23 $TMP_FILE1 $TMP_FILE2`; do Changed="y" if install-info --remove $Info_Name $DIR_FILE; then Total=`expr "$Total" + "1"` fi done fi # print summary if test "$Changed"; then echo "$Total $DONE_MSG" else echo "Nothing to do" fi rm -f $TMP_FILE_LIST eval "$DEBUG" exit 0 --- NEW FILE: fixfonts --- #!/bin/sh # Make links named `lcircle10' for all TFM and GF/PK files, if no # lcircle10 files already exist. # Don't override definition of prefix and/or libdir if they are # already defined in the environment. if test "z${prefix}" = "z" ; then prefix=/usr/local else # prefix may contain references to other variables, thanks to make. eval prefix=\""${prefix}"\" fi if test "z${libdir}" = "z" ; then libdir="${prefix}/lib/tex" else # libdir may contain references to other variables, thanks to make. eval libdir=\""${libdir}"\" fi texlibdir="${libdir}" texfontdir="${texlibdir}/fonts" # Directories for the different font formats, in case they're not all # stored in one place. textfmdir="${textfmdir-${texfontdir}}" texpkdir="${texpkdir-${texfontdir}}" texgfdir="${texgfdir-${texfontdir}}" test "z${TMPDIR}" = "z" && TMPDIR="/tmp" tempfile="${TMPDIR}/circ$$" tempfile2="${TMPDIR}/circ2$$" # EXIT SIGHUP SIGINT SIGQUIT SIGTERM #trap 'rm -f "${tempfile}" "${tempfile2}"' 0 1 2 3 15 # Find all the fonts with names that include `circle'. (cd "${texfontdir}"; find . -name '*circle*' -print > "${tempfile}") # If they have lcircle10.tfm, assume everything is there, and quit. if grep 'lcircle10\.tfm' "${tempfile}" > /dev/null 2>&1 ; then echo "Found lcircle10.tfm." exit 0 fi # No TFM file for lcircle. Make a link to circle10.tfm if it exists, # and then make a link to the bitmap files. grep 'circle10\.tfm' "${tempfile}" > "${tempfile2}" \ || { echo "I can't find any circle fonts in ${texfontdir}. If it isn't installed somewhere else, you need to get the Metafont sources from somewhere, e.g., labrea.stanford.edu:pub/tex/latex/circle10.mf, and run Metafont on them." exit 1 } # We have circle10.tfm. (If we have it more than once, take the first # one.) Make the link. tempfile2_line1="`sed -ne '1p;q' \"${tempfile2}\"`" ln "${tempfile2_line1}" "${textfmdir}/lcircle10.tfm" echo "Linked to ${tempfile2_line1}." # Now make a link for the PK files, if any. (cd "${texpkdir}" for f in `grep 'circle10.*pk' "${tempfile}"` ; do set - `echo "$f" \ | sed -ne '/\//!s/^/.\//;s/\(.*\)\/\([^\/][^\/]*\)$/\1 \2/;p'` ln "$f" "${1}/l${2}" echo "Linked to $f." done ) # And finally for the GF files. (cd "${texgfdir}" for f in `grep 'circle10.*gf' "${tempfile}"` ; do set - `echo "$f" \ | sed -ne '/\//!s/^/.\//;s/\(.*\)\/\([^\/][^\/]*\)$/\1 \2/;p'` ln "$f" "${1}/l${2}" echo "Linked to $f." done ) # eof --- NEW FILE: fixref.gawk --- #! /usr/local/bin/gawk -f # fixref.awk --- fix xrefs in texinfo documents # Copyright, 1991, Arnold David Robbins, ar...@sk... # Copyright, 1998, Arnold David Robbins, ar...@gn... # FIXREF is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # FIXREF is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA # Updated: Jul 21 1992 --- change unknown # Updated: Jul 18 1997 --- bug fix # usage: gawk -f fixref.awk input-file > output-file # or if you have #!: fixref.awk input-file > output-file # Limitations: # 1. no more than one cross reference on a line # 2. cross references may not cross a newline BEGIN \ { # we make two passes over the file. To do that we artificially # tweak the argument vector to do a variable assignment if (ARGC != 2) { printf("usage: %s texinfo-file\n", ARGV[0]) > "/dev/stderr" exit 1 } ARGV[2] = "pass=2" ARGV[3] = ARGV[1] ARGC = 4 # examine paragraphs RS = "" heading = "@(chapter|appendix|unnumbered|(appendix(sec|subsec|subsubsec))|section|subsection|subsubsection|unnumberedsec|heading|top)" pass = 1 # put space between paragraphs on output ORS = "\n\n" } pass == 1 && NF == 0 { next } # pass == 1 && /@node/ \ # bug fix 7/18/96 pass == 1 && /^@node/ \ { lname = name = "" n = split($0, lines, "\n") for (i = 1; i <= n; i++) { if (lines[i] ~ ("^" heading)) { sub(heading, "", lines[i]) sub(/^[ \t]*/, "", lines[i]) lname = lines[i] # printf "long name is '%s'\n", lines[i] } else if (lines[i] ~ /@node/) { sub(/@node[ \t]*/, "", lines[i]) sub(/[ \t]*,.*$/, "", lines[i]) name = lines[i] # printf "node name is '%s'\n", lines[i] } } if (name && lname) names[name] = lname else if (lname) printf("node name for %s missing!\n", lname) > "/dev/stderr" else printf("long name for %s missing!\n", name) > "/dev/stderr" if (name ~ /:/) printf("node `%s' contains a `:'\n", name) > "/dev/stderr" if (lname) { if (lname ~ /:/) printf("name `%s' contains a `:'\n", lname) > "/dev/stderr" else if (lname ~ /,/) { printf("name `%s' contains a `,'\n", lname) > "/dev/stderr" gsub(/,/, " ", lname) names[na... [truncated message content] |