Skip to content

Commit

Permalink
Move to gawk-3.1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoldrobbins committed Jul 16, 2010
1 parent 6cc7d58 commit 85c0d5e
Show file tree
Hide file tree
Showing 235 changed files with 47,391 additions and 24,978 deletions.
989 changes: 566 additions & 423 deletions ABOUT-NLS

Large diffs are not rendered by default.

800 changes: 791 additions & 9 deletions ChangeLog

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions FUTURES
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ In 3.1
Additional manual features:
DONE: Document NLS support

DONE: Use a new or improved dfa and/or regex library.
DONE: Add %'d for putting in commas in formatting.

For 3.2
=======
Enable \s, \S in regexes (regcomp.c and dfa.c) and document them.

Make POSIX 2001 behavior the default for sub/gsub.

Simplify awk.h.

Consider moving var_value info into Node_var itself
Expand All @@ -43,19 +47,19 @@ For 3.2

Look at ISO C 99 printf features.

Add %'d for putting in commas in formatting?

Consider integrating Fred Fish's DBUG library into gawk.

Move the loadable modules interface to libtool.

Redo the loadable modules interface from the awk level.

Rework management of array index storage.
Rework management of array index storage. (Partially DONE.)

A RECLEN variable for fixed-length record input. PROCINFO["RS"]
would be "RS" or "RECLEN" depending upon what's in use.

Use a new or improved dfa and/or regex library.

DBM storage of awk arrays. Try to allow multiple dbm packages.

Consider removing use of and/or need for the protos.h file.
Expand All @@ -67,7 +71,6 @@ For 3.2

For 3.3
=======

? Have strftime() pay attention to the value of ENVIRON["TZ"]

Add a lint check if the return value of a function is used but
Expand Down
47 changes: 25 additions & 22 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Makefile.am --- automake input file for gawk
#
# Copyright (C) 2000-2003 the Free Software Foundation, Inc.
# Copyright (C) 2000-2004 the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
Expand Down Expand Up @@ -50,7 +50,6 @@ EXTRA_DIST = \
config.sub \
depcomp \
extension \
fixvers \
m4 \
missing \
missing_d \
Expand Down Expand Up @@ -86,6 +85,8 @@ base_sources = \
awkgram.y \
builtin.c \
custom.h \
dfa.c \
dfa.h \
ext.c \
field.c \
gawkmisc.c \
Expand All @@ -94,10 +95,10 @@ base_sources = \
getopt1.c \
gettext.h \
io.c \
mbsupport.h \
main.c \
msg.c \
node.c \
patchlev.h \
protos.h \
random.c \
random.h \
Expand All @@ -124,19 +125,28 @@ DEFPATH="\".$(PATH_SEPARATOR)$(awkdatadir)\""

DEFS= -DDEFPATH=$(DEFPATH) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR="\"$(datadir)/locale\""

INCLUDES = -I$(srcdir)/intl
AM_CPPFLAGS = -Iintl

# Get rid of core files when cleaning
CLEANFILES = core core.*

# We want hard links for install-exec-hook, below
LN= ln

# First, add a link from gawk to gawk-X.Y.Z
# Same for pgawk
# For systems where gawk is awk, add a link to awk
SUFFIXES = .i
.c.i:
$(COMPILE) -E $< > $@

# First, add a link from gawk to gawk-X.Y.Z.
# Same for pgawk.
#
# For GNU systems where gawk is awk, add a link to awk.
# (This is done universally, which may not always be right, but
# there's no easy way to distinguish GNU from non-GNU systems.)
install-exec-hook:
(fullname=gawk-`./gawk --version | sed 1q | awk '{print $$3}'` ; \
cd $(DESTDIR)$(bindir); \
$(LN) gawk $$fullname 2>/dev/null ; \
$(LN) pgawk p$$fullname 2>/dev/null ; \
(cd $(DESTDIR)$(bindir); \
$(LN) gawk$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
$(LN) pgawk$(EXEEXT) pgawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
if [ ! -f awk$(EXEEXT) ]; \
then $(LN_S) gawk$(EXEEXT) awk$(EXEEXT); \
fi; exit 0)
Expand All @@ -145,8 +155,7 @@ install-exec-hook:
uninstall-links:
(cd $(DESTDIR)$(bindir); \
if [ -f awk$(EXEEXT) ] && cmp awk$(EXEEXT) gawk$(EXEEXT) > /dev/null; then rm -f awk$(EXEEXT); fi ; \
fullname=gawk-`./gawk --version | sed 1q | ./gawk '{print $$3}'` ; \
rm -f $$fullname p$$fullname; exit 0)
rm -f gawk-$(VERSION)$(EXEEXT) pgawk-$(VERSION)$(EXEEXT); exit 0)

uninstall-recursive: uninstall-links

Expand All @@ -165,15 +174,9 @@ awkgram.c: awkgram.y
if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
else :; fi

# These force version and patchlevel to be up to date based
# on what's in configure.ac. No-one else but me should have
# to use them. So there.
patchlev.h: configure.ac
$(srcdir)/fixvers -p

version.c: configure.ac version.in
$(srcdir)/fixvers -v

# This is for my development & testing.
efence: gawk
$(CC) $(LDFLAGS) -o gawk $$(ls *.o | grep -v '_p.o$$') $(LIBS) -lefence

diffout:
@$(MAKE) -C test $@
Loading

0 comments on commit 85c0d5e

Please sign in to comment.