diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 1998-11-03 21:38:52 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 1998-11-03 21:38:52 +0000 |
commit | 06b9f7e683e7650804cadd9a4c5cf6bff6c89625 (patch) | |
tree | cf05b9be1cb4466df84ccaf6cfc184f728f9aa8e /djgpp | |
download | grep-06b9f7e683e7650804cadd9a4c5cf6bff6c89625.tar.gz |
Initial revision
Diffstat (limited to 'djgpp')
-rw-r--r-- | djgpp/README | 58 | ||||
-rw-r--r-- | djgpp/config.bat | 20 | ||||
-rw-r--r-- | djgpp/config.h | 27 | ||||
-rw-r--r-- | djgpp/intl.mak | 199 | ||||
-rw-r--r-- | djgpp/main.mak | 226 | ||||
-rw-r--r-- | djgpp/po.mak | 256 | ||||
-rw-r--r-- | djgpp/po2tbl.sed | 102 | ||||
-rw-r--r-- | djgpp/src.mak | 317 | ||||
-rw-r--r-- | djgpp/tests.mak | 212 |
9 files changed, 1417 insertions, 0 deletions
diff --git a/djgpp/README b/djgpp/README new file mode 100644 index 00000000..0d343281 --- /dev/null +++ b/djgpp/README @@ -0,0 +1,58 @@ +To compile the Grep package with DJGPP tools, you will need the +following tools: + + 1) The basic DJGPP development environment, including the + GCC compiler and the libraries. + + 2) GNU Make revision 3.75 or later. + + 3) GNU Sed. + +Running the tests ("make check" in the top-level directory) +additionally requires Bash, `cmp' (from GNU Diffutils) and `true' +(from GNU Sh-utils). Automated installation ("make install") requires +Groff and `ginstall' (from GNU Fileuitils). The various ``clean'' +targets ("make clean", "make distclean", etc.) need `rm' (from +Fileutils) and `test' (from Sh-utils). TAGS and ID targets require +`etags' (from the Emacs distribution) and `mkid' (from ID-utils). + +All of these tools are available from the DJGPP archive sites. + +To build Grep, run the djgpp\config.bat batch file, then run Make: + + djgpp\config + make + +config.bat and the Makefile's it creates depend on certain file names +which are illegal on MS-DOS to be transformed to alternate names. If +you unpack the original FSF source distribution with the DJTAR program +supplied with DJGPP or with the DJGPP port of GNU Tar, these +transformations will be done automatically for you. However, if you +use some other program to unpack the sources and the build process +complains about missing files, look for the REN commands near the end +of djgpp\config.bat and manually rename the files mentioned there to +the names which the Makefile's expect. + +Please note the -u and -U options that specifically target MS-DOS and +MS-Windows environments. They are described in the Grep man page in +this distribution. + +To test that the package works, say "make check". If you don't have a +file named sh.exe somwhere on your PATH, "make check" will refuse to +run, as it needs a Unix-like shell. + +To install, either copy the executables and man pages to the +appropriate directories, or say "make install". To clean up, say +"make clean" or "make distclean". Both these targets also require +Bash; they might also run with 4DOS or NDOS replacement shells, but I +didn't test that. + +National Language Support doesn't work in this port, so don't expect +the programs to talk to you in any language but English. + +Please post any problems in the DOS version to the comp.os.msdos.djgpp +news group first, especially if they have something to do with the +DOS-specific aspects. + +Enjoy, + Eli Zaretskii <eliz@is.elta.co.il> diff --git a/djgpp/config.bat b/djgpp/config.bat new file mode 100644 index 00000000..5787cfcf --- /dev/null +++ b/djgpp/config.bat @@ -0,0 +1,20 @@ +@echo off
+echo Configuring Grep for DJGPP...
+update djgpp/config.h ./config.h
+sed -e /@VERSION@/d djgpp/main.mak > Makefile
+sed -n -e /^VERSION/p configure >> Makefile
+sed -e /@VERSION@/d djgpp/src.mak > src\Makefile
+sed -n -e /^VERSION/p configure >> src\Makefile
+sed -e /@VERSION@/d djgpp/tests.mak > tests\Makefile
+sed -n -e /^VERSION/p configure >> tests\Makefile
+sed -e /@VERSION@/d djgpp/intl.mak > intl\Makefile
+sed -n -e /^VERSION/p configure >> intl\Makefile
+sed -e /@VERSION@/d djgpp/po.mak > po\Makefile
+sed -n -e /^VERSION/p configure >> po\Makefile
+sed -e '/^#/d' ./intl/linux-msg.sed > intl\po2msg.sed
+sed -e '/^#.*[^\\]$/d' -e '/^#$/d' djgpp/po2tbl.sed > intl\po2tbl.sed
+if exist make.com ren make.com vmsmake.com
+if exist config.h.in REN config.h.in config.h-in
+if exist intl\po2tbl.sed.in REN intl\po2tbl.sed.in po2tbl-in.sed
+if exist intl\Makefile.in.in REN intl\Makefile.in.in Makefile.in-in
+echo Done.
diff --git a/djgpp/config.h b/djgpp/config.h new file mode 100644 index 00000000..39a362ae --- /dev/null +++ b/djgpp/config.h @@ -0,0 +1,27 @@ +/* config.h for DJGPP v2. Generated from config.h.in. */ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + +/* Almost everything is defined for us on <sys/config.h> */ + +#include <sys/config.h> + +/* Define if you have alloca, as a function or macro. */ +#define HAVE_ALLOCA 1 + +/* Define to use grep's error-checking malloc in the kwset routines. */ +#define GREP 1 + +/* Package name. */ +#define PACKAGE "grep" + +/* Version number. */ +#define VERSION "2.1.1" + +/* Define if you have the <malloc.h> header file. */ +#define HAVE_MALLOC_H 1 + +/* Define if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the setrlimit function. */ +#define HAVE_SETRLIMIT 1 diff --git a/djgpp/intl.mak b/djgpp/intl.mak new file mode 100644 index 00000000..5aa5bb86 --- /dev/null +++ b/djgpp/intl.mak @@ -0,0 +1,199 @@ +# Generated from Makefile.in for DJGPP v2 +# Makefile for directory with message catalog handling in GNU NLS Utilities. +# Copyright (C) 1995, 1996 Free Software Foundation, Inc. +# +# This program 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, or (at your option) +# any later version. +# +# This program 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. + +PACKAGE = grep +VERSION = @VERSION@ + +SHELL = /bin/sh + +srcdir = . +top_srcdir = .. + +prefix = ${DJDIR} +exec_prefix = ${prefix} +transform = s,x,x, +libdir = $(exec_prefix)/lib +includedir = $(prefix)/include +datadir = $(prefix)/share +localedir = $(datadir)/locale +gnulocaledir = $(prefix)/share/locale +gettextsrcdir = ${prefix}/share/gettext/intl +aliaspath = $(localedir):. +subdir = intl + +INSTALL = ${DJDIR}/bin/ginstall -c +INSTALL_DATA = ${INSTALL} -m 644 +MKINSTALLDIRS = ./mkinstalldirs + +AR = ar +CC = gcc +RANLIB = ranlib + +DEFS = -DLOCALEDIR=\"$(localedir)\" -DGNULOCALEDIR=\"$(gnulocaledir)\" \ +-DLOCALE_ALIAS_PATH=\"$(aliaspath)\" -DHAVE_CONFIG_H +CFLAGS = -g -O2 + +COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) + +HEADERS = $(COMHDRS) libgettext.h loadinfo.h +COMHDRS = gettext.h gettextP.h hash-string.h +SOURCES = $(COMSRCS) intl-compat.c cat-compat.c +COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \ +finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \ +explodename.c +OBJECTS = bindtextdom.o dcgettext.o dgettext.o gettext.o \ +finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o \ +explodename.o +CATOBJS = cat-compat.o ../po/cat-id-tbl.o +GETTOBJS = intl-compat.o +DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl-in.sed \ +xopen-msg.sed $(HEADERS) $(SOURCES) +DISTFILES.normal = VERSION +DISTFILES.gettext = libintl.glibc intlh.inst.in + +.SUFFIXES: +.SUFFIXES: .c .o +.c.o: + $(COMPILE) $< + +INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib + +all: all-no + +all-yes: libintl.a intlh.inst +all-no: + +libintl.a: $(OBJECTS) + rm -f $@ + $(AR) cru $@ $(OBJECTS) + $(RANLIB) $@ + +../po/cat-id-tbl.o: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot + cd ../po && $(MAKE) cat-id-tbl.o + +check: all + +# This installation goal is only used in GNU gettext. Packages which +# only use the library should use install instead. + +# We must not install the libintl.h/libintl.a files if we are on a +# system which has the gettext() function in its C library or in a +# separate library or use the catgets interface. A special case is +# where configure found a previously installed GNU gettext library. +# If you want to use the one which comes with this version of the +# package, you have to use `configure --with-included-gettext'. +install: install-exec install-data +install-exec: all + if test "$(PACKAGE)" = "gettext" \ + && test '' = '$(GETTOBJS)'; then \ + if test -r $(MKINSTALLDIRS); then \ + $(MKINSTALLDIRS) $(libdir) $(includedir); \ + else \ + $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \ + fi; \ + $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \ + $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \ + else \ + : ; \ + fi +install-data: all + if test "$(PACKAGE)" = "gettext"; then \ + if test -r $(MKINSTALLDIRS); then \ + $(MKINSTALLDIRS) $(gettextsrcdir); \ + else \ + $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ + fi; \ + $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \ + cd $(srcdir) && \ + dists="$(DISTFILES.common)"; \ + for file in $$dists; do \ + $(INSTALL_DATA) $$file $(gettextsrcdir)/$$file; \ + done; \ + else \ + : ; \ + fi + +# Define this as empty until I found a useful application. +installcheck: + +uninstall: + dists="$(DISTFILES)"; \ + for file in $$dists; do \ + rm -f $(gettextsrcdir)/$$file; \ + done + +info dvi: + +$(OBJECTS): ../config.h libgettext.h +bindtextdom.o finddomain.o loadmsgcat.o: gettextP.h gettext.h loadinfo.h +dcgettext.o: gettextP.h gettext.h hash-string.h loadinfo.h + +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) + here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) + +id: ID + +ID: $(HEADERS) $(SOURCES) + here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) + + +mostlyclean: + rm -f *.a *.o core core.* + +clean: mostlyclean + +distclean: clean + rm -f Makefile ID TAGS po2msg.sed po2tbl.sed libintl.h + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + + +# GNU gettext needs not contain the file `VERSION' but contains some +# other files which should not be distributed in other packages. +distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: Makefile $(DISTFILES) + if test "$(PACKAGE)" = gettext; then \ + additional="$(DISTFILES.gettext)"; \ + else \ + additional="$(DISTFILES.normal)"; \ + fi; \ + for file in $(DISTFILES.common) $$additional; do \ + ln $(srcdir)/$$file $(distdir) 2> /dev/null \ + || cp -p $(srcdir)/$$file $(distdir); \ + done + +dist-libc: + tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc + +# The dependency for intlh.inst is different in gettext and all other +# packages. Because we cannot you GNU make features we have to solve +# the problem while rewriting Makefile.in. +#YES#intlh.inst: intlh.inst.in ../config.status +#YES# cd .. \ +#YES# && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ +#YES# $(SHELL) ./config.status +.PHONY: intlh.inst +intlh.inst: + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/djgpp/main.mak b/djgpp/main.mak new file mode 100644 index 00000000..55712002 --- /dev/null +++ b/djgpp/main.mak @@ -0,0 +1,226 @@ +# Generated from Makefile.in for DJGPP v2 +# Makefile.in generated automatically by automake 1.2h from Makefile.am + +# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# 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. + + +SHELL = /bin/sh + +srcdir = . +top_srcdir = . +prefix = ${DJDIR} +exec_prefix = ${prefix} + +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +libexecdir = ${exec_prefix}/libexec +datadir = ${prefix}/share +sysconfdir = ${prefix}/etc +sharedstatedir = ${prefix}/com +localstatedir = ${prefix}/var +libdir = ${exec_prefix}/lib +infodir = ${prefix}/info +mandir = ${prefix}/man +includedir = ${prefix}/include +oldincludedir = /usr/include + +DISTDIR = + +pkgdatadir = $(datadir)/grep +pkglibdir = $(libdir)/grep +pkgincludedir = $(includedir)/grep + +top_builddir = . + +ACLOCAL = aclocal +AUTOCONF = autoconf +AUTOMAKE = automake +AUTOHEADER = autoheader + +INSTALL = ${DJDIR}/bin/ginstall -c +INSTALL_PROGRAM = ${INSTALL} +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_SCRIPT = ${INSTALL_PROGRAM} +transform = s,x,x, + +NORMAL_INSTALL = true +PRE_INSTALL = true +POST_INSTALL = true +NORMAL_UNINSTALL = true +PRE_UNINSTALL = true +POST_UNINSTALL = true +AWK = gawk +CATALOGS = +CATOBJEXT = +CC = gcc +DATADIRNAME = share +GENCAT = +GMOFILES = de.gmo es.gmo fr.gmo ko.gmo nl.gmo no.gmo pl.gmo sl.gmo sv.gmo +GMSGFMT = +GT_NO = +GT_YES = #YES# +INCLUDE_LOCALE_H = "#include <locale.h>" +INSTOBJEXT = +INTLDEPS = +INTLLIBS = +INTLOBJS = +MAKEINFO = makeinfo +MKINSTALLDIRS = ./mkinstalldirs +MSGFMT = +PACKAGE = grep +POFILES = de.po es.po fr.po ko.po nl.po no.po pl.po sl.po sv.po +POSUB = +RANLIB = ranlib +USE_INCLUDED_LIBINTL = no +USE_NLS = no +VERSION = @VERSION@ +l = + +AUTOMAKE_OPTIONS = no-dependencies + +SUBDIRS = intl po src tests + +EXTRA_DIST = TODO make.com +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL \ +Makefile.am Makefile.in NEWS THANKS TODO acconfig.h aclocal.m4 \ +config.guess config.h-in configure configure.in install-sh missing \ +mkinstalldirs stamp-h.in + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP = --best +default: all + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile + +config.h: stamp-h +stamp-h: $(srcdir)/config.h-in + @echo timestamp > stamp-h + +$(srcdir)/config.h-in: $(srcdir)/stamp-h.in + +mostlyclean-hdr: + +clean-hdr: + +distclean-hdr: + -rm -f config.h + +maintainer-clean-hdr: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# pass the desired values on the `make' command line. + + +all info dvi install: + @echo "Making $@ in src" + cd src ; $(MAKE) $@ ; cd .. + +check: + @echo "Making $@ in tests" + cd tests ; $(MAKE) $@ ; cd .. + +clean-sub: + @echo "Making ${target} in src" + cd src ; $(MAKE) ${target} ; cd .. + @echo "Making ${target} in tests" + cd tests ; $(MAKE) ${target} ; cd .. + @echo "Making ${target} in po" + cd po ; $(MAKE) ${target} ; cd .. + @echo "Making ${target} in intl" + cd intl ; $(MAKE) ${target} ; cd .. + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + $(MAKE) clean-sub target=$(shell echo $@ | sed s/-recursive//) + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) + cd src ; $(MAKE) $@ ; cd .. + +TAGS: $(HEADERS) $(SOURCES) config.h-in $(TAGS_DEPENDENCIES) + cd src ; $(MAKE) $@ ; cd .. + +mostlyclean-tags: + +clean-tags: + +distclean-tags: + -rm -f TAGS ID + +maintainer-clean-tags: + +install-strip: + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install + +mostlyclean-generic: + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(DISTCLEANFILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic + +clean-am: clean-hdr clean-tags clean-generic mostlyclean-am + +distclean-am: distclean-hdr distclean-tags distclean-generic clean-am + +maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \ + maintainer-clean-generic distclean-am + +mostlyclean: mostlyclean-recursive mostlyclean-am + +clean: clean-recursive clean-am + +distclean: distclean-recursive distclean-am + -rm -f config.status + +maintainer-clean: maintainer-clean-recursive maintainer-clean-am + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + -rm -f config.status + +.PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \ +maintainer-clean-hdr install-data-recursive uninstall-data-recursive \ +install-exec-recursive uninstall-exec-recursive installdirs-recursive \ +uninstalldirs-recursive all-recursive check-recursive \ +installcheck-recursive info-recursive dvi-recursive \ +mostlyclean-recursive distclean-recursive clean-recursive \ +maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ +distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ +installcheck all-recursive-am all-am install-exec install-data install \ +uninstall all installdirs mostlyclean-generic distclean-generic \ +clean-generic maintainer-clean-generic clean mostlyclean distclean \ +maintainer-clean \ +clean-sub + + +# 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: diff --git a/djgpp/po.mak b/djgpp/po.mak new file mode 100644 index 00000000..eaa314ec --- /dev/null +++ b/djgpp/po.mak @@ -0,0 +1,256 @@ +# Generated from Makefile.in-in for DJGPP v2 +# Makefile for program source directory in GNU NLS utilities package. +# Copyright (C) 1995, 1996 Free Software Foundation, Inc. +# +# This program 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, or (at your option) +# any later version. +# +# This program 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. + +PACKAGE = grep +VERSION = @VERSION@ + +SHELL = /bin/sh + + +srcdir = . +top_srcdir = .. + +prefix = ${DJDIR} +exec_prefix = ${prefix} +datadir = $(prefix)/share +localedir = $(datadir)/locale +gnulocaledir = $(prefix)/share/locale +gettextsrcdir = $(prefix)/share/gettext/po +subdir = po + +INSTALL = ${DJDIR}/bin/ginstall -c +INSTALL_DATA = ${INSTALL} -m 644 +MKINSTALLDIRS = ./mkinstalldirs + +CC = gcc +GENCAT = +GMSGFMT = PATH=../src:$$PATH +MSGFMT = +XGETTEXT = PATH=../src:$$PATH +MSGMERGE = PATH=../src:$$PATH msgmerge + +DEFS = -DHAVE_CONFIG_H +CFLAGS = -g -O2 +CPPFLAGS = + +INCLUDES = -I.. -I$(top_srcdir)/intl + +COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) + +SOURCES = cat-id-tbl.c +POFILES = de.po es.po fr.po ko.po nl.po no.po pl.po sl.po sv.po +GMOFILES = de.gmo es.gmo fr.gmo ko.gmo nl.gmo no.gmo pl.gmo sl.gmo sv.gmo +DISTFILES = ChangeLog Makefile.in-in POTFILES.in $(PACKAGE).pot \ +stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) + +POTFILES = \ + ../src/dfa.c \ + ../src/getopt.c \ + ../src/getopt1.c \ + ../src/grep.c \ + ../src/kwset.c \ + ../src/obstack.c + +CATALOGS = +CATOBJEXT = +INSTOBJEXT = + +.SUFFIXES: +.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat + +.c.o: + $(COMPILE) $< + +.po.pox: + $(MAKE) $(PACKAGE).pot + $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox + +.po.mo: + $(MSGFMT) -o $@ $< + +.po.gmo: + file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ + && rm -f $$file && $(GMSGFMT) -o $$file $< + +.po.cat: + sed -f ../intl/po2msg.sed < $< > $*.msg \ + && rm -f $@ && $(GENCAT) $@ $*.msg + + +all: all-no + +all-yes: cat-id-tbl.c $(CATALOGS) +all-no: + +$(PACKAGE).pot: $(POTFILES) + $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ + --add-comments --keyword=_ --keyword=N_ \ + --files-from=$(srcdir)/POTFILES.in + if [ ! -s $(PACKAGE).po ] \ + || cmp -s $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; then \ + rm -f $(PACKAGE).po; \ + else \ + rm -f $(srcdir)/$(PACKAGE).pot \ + && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot; \ + fi + +cat-id-tbl.c: stamp-cat-id +stamp-cat-id: $(PACKAGE).pot + rm -f cat-id-tbl.tmp + sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \ + | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp + if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \ + rm cat-id-tbl.tmp; \ + else \ + echo cat-id-tbl.c changed; \ + rm -f $(srcdir)/cat-id-tbl.c; \ + mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \ + fi + cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id + + +install: install-exec install-data +install-exec: +install-data: install-data-no +install-data-no: all +install-data-yes: all + if test -r $(MKINSTALLDIRS); then \ + $(MKINSTALLDIRS) $(datadir); \ + else \ + $(top_srcdir)/mkinstalldirs $(datadir); \ + fi + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + case "$$cat" in \ + *.gmo) destdir=$(gnulocaledir);; \ + *) destdir=$(localedir);; \ + esac; \ + lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \ + dir=$$destdir/$$lang/LC_MESSAGES; \ + if test -r $(MKINSTALLDIRS); then \ + $(MKINSTALLDIRS) $$dir; \ + else \ + $(top_srcdir)/mkinstalldirs $$dir; \ + fi; \ + if test -r $$cat; then \ + $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ + echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \ + else \ + $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ + echo "installing $(srcdir)/$$cat as" \ + "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ + fi; \ + if test -r $$cat.m; then \ + $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ + echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ + else \ + if test -r $(srcdir)/$$cat.m ; then \ + $(INSTALL_DATA) $(srcdir)/$$cat.m \ + $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ + echo "installing $(srcdir)/$$cat as" \ + "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ + else \ + true; \ + fi; \ + fi; \ + done + if test "$(PACKAGE)" = "gettext"; then \ + if test -r $(MKINSTALLDIRS); then \ + $(MKINSTALLDIRS) $(gettextsrcdir); \ + else \ + $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ + fi; \ + cd $(srcdir) && \ + $(INSTALL_DATA) Makefile.in-in $(gettextsrcdir)/Makefile.in-in; \ + else \ + : ; \ + fi + +# Define this as empty until I found a useful application. +installcheck: + +uninstall: + catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \ + rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ + rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ + rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \ + rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \ + done + rm -f $(gettextsrcdir)/po-Makefile.in-in + +check: all + +cat-id-tbl.o: ../intl/libgettext.h + +dvi info tags TAGS ID: + +mostlyclean: + rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp + rm -fr *.o + +clean: mostlyclean + +distclean: clean + rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: update-po $(DISTFILES) + dists="$(DISTFILES)"; \ + for file in $$dists; do \ + ln $(srcdir)/$$file $(distdir) 2> /dev/null \ + || cp -p $(srcdir)/$$file $(distdir); \ + done + +update-po: Makefile + $(MAKE) $(PACKAGE).pot + PATH=`pwd`/../src:$$PATH; \ + cd $(srcdir); \ + catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ + lang=`echo $$cat | sed 's/$(CATOBJEXT)$$//'`; \ + mv $$lang.po $$lang.old.po; \ + echo "$$lang:"; \ + if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ + rm -f $$lang.old.po; \ + else \ + echo "msgmerge for $$cat failed!"; \ + rm -f $$lang.po; \ + mv $$lang.old.po $$lang.po; \ + fi; \ + done + +POTFILES: POTFILES.in + ( if test 'x$(srcdir)' != 'x.'; then \ + posrcprefix='$(top_srcdir)/'; \ + else \ + posrcprefix="../"; \ + fi; \ + sed -e '/^#/d' -e '/^[ ]*$$/d' \ + -e "s@.*@ $$posrcprefix& \\\\@" \ + -e '$$s/\(.*\) \\/\1/' < $(srcdir)/POTFILES.in > POTFILES ) + + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/djgpp/po2tbl.sed b/djgpp/po2tbl.sed new file mode 100644 index 00000000..b3bcca4d --- /dev/null +++ b/djgpp/po2tbl.sed @@ -0,0 +1,102 @@ +# po2tbl.sed - Convert Uniforum style .po file to lookup table for catgets +# Copyright (C) 1995 Free Software Foundation, Inc. +# Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. +# +# This program 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, or (at your option) +# any later version. +# +# This program 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. +# +1 { + i\ +/* Automatically generated by po2tbl.sed from @PACKAGE NAME@.pot. */\ +\ +#if HAVE_CONFIG_H\ +# include <config.h>\ +#endif\ +\ +#include "libgettext.h"\ +\ +const struct _msg_ent _msg_tbl[] = { + h + s/.*/0/ + x +} +# +# Write msgid entries in C array form. +# +/^msgid/ { + s/msgid[ ]*\(".*"\)/ {\1/ + tb +# Append the next line + :b + N +# Look whether second part is continuation line. + s/\(.*\)"\(\n\)"\(.*"\)/\1\2\3/ +# Yes, then branch. + ta +# Because we assume that the input file correctly formed the line +# just read cannot be again be a msgid line. So it's safe to ignore +# it. + s/\(.*\)\n.*/\1/ + bc +# We found a continuation line. But before printing insert '\'. + :a + s/\(.*\)\(\n.*\)/\1\\\2/ + P +# We cannot use D here. + s/.*\n\(.*\)/\1/ +# Some buggy seds do not clear the `successful substitution since last ``t''' +# flag on `N', so we do a `t' here to clear it. + tb +# Not reached + :c + x +# The following nice solution is by +# Bruno <Haible@ma2s2.mathematik.uni-karlsruhe.de> + td +# Increment a decimal number in pattern space. +# First hide trailing `9' digits. + :d + s/9\(_*\)$/_\1/ + td +# Assure at least one digit is available. + s/^\(_*\)$/0\1/ +# Increment the last digit. + s/8\(_*\)$/9\1/ + s/7\(_*\)$/8\1/ + s/6\(_*\)$/7\1/ + s/5\(_*\)$/6\1/ + s/4\(_*\)$/5\1/ + s/3\(_*\)$/4\1/ + s/2\(_*\)$/3\1/ + s/1\(_*\)$/2\1/ + s/0\(_*\)$/1\1/ +# Convert the hidden `9' digits to `0's. + s/_/0/g + x + G + s/\(.*\)\n\([0-9]*\)/\1, \2},/ + s/\(.*\)"$/\1/ + p +} +# +# Last line. +# +$ { + i\ +};\ + + g + s/0*\(.*\)/int _msg_tbl_length = \1;/p +} +d diff --git a/djgpp/src.mak b/djgpp/src.mak new file mode 100644 index 00000000..cf5b0e25 --- /dev/null +++ b/djgpp/src.mak @@ -0,0 +1,317 @@ +# Generated from Makefile.in for DJGPP v2 +# Makefile.in generated automatically by automake 1.2h from Makefile.am + +# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# 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. + + +SHELL = /bin/sh + +srcdir = . +top_srcdir = .. +prefix = ${DJDIR} +exec_prefix = ${prefix} + +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +libexecdir = ${exec_prefix}/libexec +datadir = ${prefix}/share +sysconfdir = ${prefix}/etc +sharedstatedir = ${prefix}/com +localstatedir = ${prefix}/var +libdir = ${exec_prefix}/lib +infodir = ${prefix}/info +mandir = ${prefix}/info +includedir = ${prefix}/include +oldincludedir = /usr/include + +DISTDIR = + +pkgdatadir = $(datadir)/grep +pkglibdir = $(libdir)/grep +pkgincludedir = $(includedir)/grep + +top_builddir = .. + +ACLOCAL = aclocal +AUTOCONF = autoconf +AUTOMAKE = automake +AUTOHEADER = autoheader + +INSTALL = ${DJDIR}/bin/ginstall -c +INSTALL_PROGRAM = ${INSTALL} +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_SCRIPT = ${INSTALL_PROGRAM} +transform = s,x,x, + +NORMAL_INSTALL = true +PRE_INSTALL = true +POST_INSTALL = true +NORMAL_UNINSTALL = true +PRE_UNINSTALL = true +POST_UNINSTALL = true +AWK = gawk +CATALOGS = +CATOBJEXT = +CC = gcc +DATADIRNAME = share +GENCAT = +GMOFILES = de.gmo es.gmo fr.gmo ko.gmo nl.gmo no.gmo pl.gmo sl.gmo sv.gmo +GMSGFMT = +GT_NO = +GT_YES = #YES# +INCLUDE_LOCALE_H = "#include <locale.h>" +INSTOBJEXT = +INTLDEPS = +INTLLIBS = +INTLOBJS = +MAKEINFO = makeinfo +MKINSTALLDIRS = ./mkinstalldirs +MSGFMT = +PACKAGE = grep +POFILES = de.po es.po fr.po ko.po nl.po no.po pl.po sl.po sv.po +POSUB = +RANLIB = ranlib +USE_INCLUDED_LIBINTL = no +USE_NLS = no +VERSION = @VERSION@ +l = + +AUTOMAKE_OPTIONS=no-dependencies + +LN = ln + +bin_PROGRAMS = grep egrep fgrep +grep_SOURCES = grep.c grep.h \ + dfa.c dfa.h \ + kwset.c kwset.h \ + obstack.c obstack.h \ + getopt.c getopt1.c getopt.h \ + search.c getpagesize.h system.h +egrep_SOURCES = +fgrep_SOURCES = +LDADD = regex.o +localedir = $(prefix)/share/locale +INCLUDES = -I../intl -DLOCALEDIR=\"$(localedir)\" +man_MANS = grep.1 fgrep.1 egrep.1 +EXTRA_DIST = grep.1 egrep.man fgrep.man \ + regex.c regex.h +CLEANFILES = egrep.1 fgrep.1 +mkinstalldirs = ${DJDIR}/bin/gmkdir -p +CONFIG_HEADER = ../config.h +CONFIG_CLEAN_FILES = +PROGRAMS = $(bin_PROGRAMS) + + +DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. +CPPFLAGS = +LDFLAGS = +LIBS = +grep_OBJECTS = grep.o dfa.o kwset.o obstack.o getopt.o getopt1.o \ +search.o +grep_LDADD = $(LDADD) +grep_DEPENDENCIES = regex.o +grep_LDFLAGS = +egrep_OBJECTS = +egrep_LDADD = $(LDADD) +egrep_DEPENDENCIES = grep +egrep_LDFLAGS = +fgrep_OBJECTS = +fgrep_LDADD = $(LDADD) +fgrep_DEPENDENCIES = grep +fgrep_LDFLAGS = +CFLAGS = -g -O2 +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) +LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ +man1dir = $(mandir)/man1 +MANS = $(man_MANS) + +NROFF = groff -s -man +DIST_COMMON = Makefile.am Makefile.in alloca.c btowc.c memchr.c regex.c + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP = --best +SOURCES = $(grep_SOURCES) $(egrep_SOURCES) $(fgrep_SOURCES) +OBJECTS = $(grep_OBJECTS) $(egrep_OBJECTS) $(fgrep_OBJECTS) + +all: Makefile $(PROGRAMS) $(MANS) + +.SUFFIXES: +.SUFFIXES: .S .c .o .s +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile + + +mostlyclean-binPROGRAMS: + +clean-binPROGRAMS: + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) + +distclean-binPROGRAMS: + +maintainer-clean-binPROGRAMS: + +install-binPROGRAMS: $(bin_PROGRAMS) + $(mkinstalldirs) $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) grep $(DESTDIR)$(bindir)/grep + $(INSTALL_PROGRAM) egrep.exe $(DESTDIR)$(bindir)/egrep.exe + $(INSTALL_PROGRAM) fgrep.exe $(DESTDIR)$(bindir)/fgrep.exe + +.c.o: + $(COMPILE) -c $< + +.s.o: + $(COMPILE) -c $< + +.S.o: + $(COMPILE) -c $< + +mostlyclean-compile: + -rm -f *.o core + +clean-compile: + +distclean-compile: + -rm -f *.tab.c + +maintainer-clean-compile: + +grep: $(grep_OBJECTS) $(grep_DEPENDENCIES) + $(LINK) $(grep_LDFLAGS) $(grep_OBJECTS) $(grep_LDADD) $(LIBS) + +egrep: $(egrep_OBJECTS) $(egrep_DEPENDENCIES) + stubify -g egrep + stubedit egrep.exe runfile=grep + command.com /c copy egrep.exe egrep > NUL + +fgrep: $(fgrep_OBJECTS) $(fgrep_DEPENDENCIES) + stubify -g fgrep + stubedit fgrep.exe runfile=grep + command.com /c copy fgrep.exe fgrep > NUL + +$(OBJECTS): ../config.h +grep.o kwset.o search.o: system.h +getopt.o getopt1.o grep.o: getopt.h +grep.o search.o: grep.h +kwset.o search.o: kwset.h +kwset.o obstack.o: obstack.h +dfa.o regex.o search.o: regex.h +grep.o: dosbuf.c getpagesize.h + +install-man: $(MANS) + $(mkinstalldirs) $(DESTDIR)$(mandir) + $(NROFF) grep.1 > grep.1n + $(NROFF) egrep.1 > egrep.1n + $(NROFF) fgrep.1 > fgrep.1n + $(INSTALL_DATA) grep.1n $(mandir)/grep.1 + $(INSTALL_DATA) egrep.1n $(mandir)/egrep.1 + $(INSTALL_DATA) fgrep.1n $(mandir)/fgrep.1 + -rm -f grep.1n [fe]grep.1n + + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) + mkid -f./ID $(SOURCES) $(HEADERS) + +# The call to $(sort) avoids using a UNix-like shell. I don't want to +# require Bash or its ilk for something as simple as generating TAGS. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) + etags $(ETAGS_ARGS) $$tags $(sort $(SOURCES) $(HEADERS)) + +mostlyclean-tags: + +clean-tags: + +distclean-tags: + -rm -f TAGS ID + +maintainer-clean-tags: + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) + +subdir = src + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + test -f $(distdir)/$$file \ + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $$d/$$file $(distdir)/$$file; \ + done +info: +dvi: +check: all + $(MAKE) +installcheck: +install-exec: install-binPROGRAMS + +install-data: install-man + +install: install-exec install-data all + +install-strip: + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install +installdirs: + $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) + + +mostlyclean-generic: + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(DISTCLEANFILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +mostlyclean: mostlyclean-binPROGRAMS mostlyclean-compile \ + mostlyclean-tags mostlyclean-generic + +clean: clean-binPROGRAMS clean-compile clean-tags clean-generic \ + mostlyclean + +distclean: distclean-binPROGRAMS distclean-compile distclean-tags \ + distclean-generic clean + -rm -f config.status + +maintainer-clean: maintainer-clean-binPROGRAMS maintainer-clean-compile \ + maintainer-clean-tags maintainer-clean-generic \ + distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ +maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ +mostlyclean-compile distclean-compile clean-compile \ +maintainer-clean-compile install-man uninstall-man tags \ +mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \ +distdir info dvi installcheck install-exec install-data install \ +uninstall all installdirs mostlyclean-generic distclean-generic \ +clean-generic maintainer-clean-generic clean mostlyclean distclean \ +maintainer-clean + + +fgrep.1: fgrep.man + sed -e "s%man1/@grep@%grep.1%g" $(srcdir)/fgrep.man > $@ + +egrep.1: egrep.man + sed -e "s%man1/@grep@%grep.1%g" $(srcdir)/egrep.man > $@ + +# 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: diff --git a/djgpp/tests.mak b/djgpp/tests.mak new file mode 100644 index 00000000..626c6b48 --- /dev/null +++ b/djgpp/tests.mak @@ -0,0 +1,212 @@ +# Generated from Makefile.in for DJGPP v2 +# Makefile.in generated automatically by automake 1.2h from Makefile.am + +# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# 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. + + +SHELL = /bin/sh + +srcdir = . +top_srcdir = .. +prefix = ${DJDIR} +exec_prefix = ${prefix} + +bindir = ${exec_prefix}/bin +sbindir = ${exec_prefix}/sbin +libexecdir = ${exec_prefix}/libexec +datadir = ${prefix}/share +sysconfdir = ${prefix}/etc +sharedstatedir = ${prefix}/com +localstatedir = ${prefix}/var +libdir = ${exec_prefix}/lib +infodir = ${prefix}/info +mandir = ${prefix}/man +includedir = ${prefix}/include +oldincludedir = /usr/include + +DISTDIR = + +pkgdatadir = $(datadir)/grep +pkglibdir = $(libdir)/grep +pkgincludedir = $(includedir)/grep + +top_builddir = .. + +ACLOCAL = aclocal +AUTOCONF = autoconf +AUTOMAKE = automake +AUTOHEADER = autoheader + +INSTALL = ${DJDIR}/bin/ginstall -c +INSTALL_PROGRAM = ${INSTALL} +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_SCRIPT = ${INSTALL_PROGRAM} +transform = s,x,x, + +NORMAL_INSTALL = true +PRE_INSTALL = true +POST_INSTALL = true +NORMAL_UNINSTALL = true +PRE_UNINSTALL = true +POST_UNINSTALL = true +CATALOGS = +CATOBJEXT = +CC = gcc +DATADIRNAME = share +GENCAT = +GMOFILES = de.gmo es.gmo fr.gmo ko.gmo nl.gmo no.gmo pl.gmo sl.gmo sv.gmo +GMSGFMT = +GT_NO = +GT_YES = #YES# +INCLUDE_LOCALE_H = "#include <locale.h>" +INSTOBJEXT = +INTLDEPS = +INTLLIBS = +INTLOBJS = +MAKEINFO = makeinfo +MKINSTALLDIRS = ./mkinstalldirs +MSGFMT = +PACKAGE = grep +POFILES = de.po es.po fr.po ko.po nl.po no.po pl.po sl.po sv.po +POSUB = +RANLIB = ranlib +USE_INCLUDED_LIBINTL = no +USE_NLS = no +VERSION = @VERSION@ +l = + +AWK=gawk + +TESTS = warning.sh khadafy.sh spencer1.sh spencer2.sh status.sh empty.sh +EXTRA_DIST = $(TESTS) khadafy.lines khadafy.regexp \ + scriptgen.awk spencer1.tests spencer2.tests +CLEANFILES = tmp1.script tmp2.script khadafy.out +TESTS_ENVIRONMENT = GREP=$(top_builddir)/src/grep AWK=$(AWK) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = ../config.h +CONFIG_CLEAN_FILES = +DIST_COMMON = Makefile.am Makefile.in + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP = --best + +ifeq '$(basename $(notdir $(SHELL)))' 'sh' +CHECK_SHELL = @true +else +CHECK_SHELL = Grep-tests-require-Unix-like-shell-to-run +endif + +all: Makefile + +.SUFFIXES: +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps tests/Makefile + +tags: TAGS +TAGS: + + +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) + +subdir = tests + + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + test -f $(distdir)/$$file \ + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $$d/$$file $(distdir)/$$file; \ + done +check-TESTS: $(TESTS) + @failed=0; all=0; \ + srcdir=$(srcdir); export srcdir; \ + for tst in $(TESTS); do \ + if test -f $$tst; then dir=.; \ + else dir="$(srcdir)"; fi; \ + if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ + all=`expr $$all + 1`; \ + echo "PASS: $$tst"; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="$$failed of $$all tests failed"; \ + fi; \ + dashes=`echo "$$banner" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0 +info: +dvi: +check: all + $(CHECK_SHELL) + @utod $(srcdir)/khadafy.lines + $(MAKE) check-TESTS +installcheck: +install-exec: + @$(NORMAL_INSTALL) + +install-data: + @$(NORMAL_INSTALL) + +install: install-exec install-data all + @: + +uninstall: + +install-strip: + $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install +installdirs: + + +mostlyclean-generic: + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f Makefile $(DISTCLEANFILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +mostlyclean: mostlyclean-generic + +clean: clean-generic mostlyclean + +distclean: distclean-generic clean + -rm -f config.status + +maintainer-clean: maintainer-clean-generic distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +.PHONY: tags distdir check-TESTS info dvi installcheck \ +install-exec install-data install uninstall all installdirs \ +mostlyclean-generic distclean-generic clean-generic \ +maintainer-clean-generic clean mostlyclean distclean maintainer-clean + + +# 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: |