pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/pdksh/files Import subset of pdksh-5.2.14 distr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4049b104197c
branches:  trunk
changeset: 542625:4049b104197c
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri May 23 17:15:14 2008 +0000

description:
Import subset of pdksh-5.2.14 distribution.
Only the files required to build it, for pkgsrc bootstrap purposes.

diffstat:

 shells/pdksh/files/LEGAL        |    34 +
 shells/pdksh/files/Makefile.in  |   330 ++
 shells/pdksh/files/acconfig.h   |   185 +
 shells/pdksh/files/aclocal.m4   |  1365 +++++++++++
 shells/pdksh/files/alloc.c      |   776 ++++++
 shells/pdksh/files/c_ksh.c      |  1471 ++++++++++++
 shells/pdksh/files/c_sh.c       |   904 +++++++
 shells/pdksh/files/c_test.c     |   662 +++++
 shells/pdksh/files/c_test.h     |    53 +
 shells/pdksh/files/c_ulimit.c   |   271 ++
 shells/pdksh/files/check-fd.c   |    89 +
 shells/pdksh/files/check-pgrp.c |   101 +
 shells/pdksh/files/check-sigs.c |   255 ++
 shells/pdksh/files/conf-end.h   |    55 +
 shells/pdksh/files/config.h.in  |   360 +++
 shells/pdksh/files/configure    |  4447 +++++++++++++++++++++++++++++++++++++++
 shells/pdksh/files/configure.in |   328 ++
 shells/pdksh/files/edit.c       |  1021 ++++++++
 shells/pdksh/files/edit.h       |    84 +
 shells/pdksh/files/emacs-gen.sh |    43 +
 shells/pdksh/files/emacs.c      |  2201 +++++++++++++++++++
 shells/pdksh/files/eval.c       |  1376 ++++++++++++
 shells/pdksh/files/exec.c       |  1687 ++++++++++++++
 shells/pdksh/files/expand.h     |   106 +
 shells/pdksh/files/expr.c       |   605 +++++
 shells/pdksh/files/history.c    |  1190 ++++++++++
 shells/pdksh/files/install-sh   |   119 +
 shells/pdksh/files/io.c         |   551 ++++
 shells/pdksh/files/jobs.c       |  1874 ++++++++++++++++
 shells/pdksh/files/ksh.Man      |  3532 ++++++++++++++++++++++++++++++
 shells/pdksh/files/ksh_dir.h    |    25 +
 shells/pdksh/files/ksh_limval.h |    23 +
 shells/pdksh/files/ksh_stat.h   |    58 +
 shells/pdksh/files/ksh_time.h   |    25 +
 shells/pdksh/files/ksh_times.h  |    18 +
 shells/pdksh/files/ksh_wait.h   |    50 +
 shells/pdksh/files/lex.c        |  1393 ++++++++++++
 shells/pdksh/files/lex.h        |   130 +
 shells/pdksh/files/mail.c       |   194 +
 shells/pdksh/files/main.c       |   841 +++++++
 shells/pdksh/files/misc.c       |  1345 +++++++++++
 shells/pdksh/files/missing.c    |   293 ++
 shells/pdksh/files/mkman        |    44 +
 shells/pdksh/files/path.c       |   348 +++
 shells/pdksh/files/proto.h      |   300 ++
 shells/pdksh/files/sh.h         |   744 ++++++
 shells/pdksh/files/shf.c        |  1294 +++++++++++
 shells/pdksh/files/shf.h        |    85 +
 shells/pdksh/files/sigact.c     |   482 ++++
 shells/pdksh/files/sigact.h     |   129 +
 shells/pdksh/files/siglist.in   |    55 +
 shells/pdksh/files/siglist.sh   |    41 +
 shells/pdksh/files/stamp-h.in   |     1 +
 shells/pdksh/files/syn.c        |   945 ++++++++
 shells/pdksh/files/table.c      |   237 ++
 shells/pdksh/files/table.h      |   181 +
 shells/pdksh/files/trap.c       |   433 +++
 shells/pdksh/files/tree.c       |   758 ++++++
 shells/pdksh/files/tree.h       |   140 +
 shells/pdksh/files/tty.c        |   177 +
 shells/pdksh/files/tty.h        |   108 +
 shells/pdksh/files/var.c        |  1229 ++++++++++
 shells/pdksh/files/version.c    |     8 +
 shells/pdksh/files/vi.c         |  2173 +++++++++++++++++++
 64 files changed, 40382 insertions(+), 0 deletions(-)

diffs (truncated from 40638 to 300 lines):

diff -r 6a8a2a8e87c2 -r 4049b104197c shells/pdksh/files/LEGAL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/pdksh/files/LEGAL  Fri May 23 17:15:14 2008 +0000
@@ -0,0 +1,34 @@
+pdksh is provided AS IS, with NO WARRANTY, either expressed or implied.
+
+The vast majority of the code that makes pdksh is in the public domain.
+The exceptions are:
+       sigact.c and sigact.h
+               These are covered by copyrighten by Simon J. Gerraty;
+               the copyright notice for these files is as follows:
+                   This is free software.  It comes with NO WARRANTY.
+                   Permission to use, modify and distribute this source code
+                   is granted subject to the following conditions.
+                   1/ that that the above copyright notice and this notice 
+                   are preserved in all copies and that due credit be given 
+                   to the author.  
+                   2/ that any changes to this code are clearly commented 
+                   as such so that the author does get blamed for bugs 
+                   other than his own.
+       aclocal.m4
+               This is covered by the GNU General Public Licence (GPL)
+               as it contains modified versions of macros that come with
+               GNU autoconf.  As this is used solely for configuration,
+               the pdksh code itself is not covered by the GPL.
+               The following is taken from autoconf 2.x documentation
+               (info autoconf questions distributing) concerning use
+               of autoconf in programs:
+
+                  There are no restrictions on how the configuration
+                  scripts that Autoconf produces may be distributed
+                  or used.  In Autoconf version 1, they were covered by
+                  the GNU General Public License.  We still encourage
+                  software authors to distribute their work under terms
+                  like those of the GPL, but doing so is not required
+                  to use Autoconf.
+
+That's it.  Short and simple.
diff -r 6a8a2a8e87c2 -r 4049b104197c shells/pdksh/files/Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/pdksh/files/Makefile.in    Fri May 23 17:15:14 2008 +0000
@@ -0,0 +1,330 @@
+#
+#  @configure_input@
+#
+
+srcdir = @srcdir@
+VPATH = @srcdir@
+
+CC = @CC@
+CPP = @CPP@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+
+DEFS = @DEFS@
+LIBS = @LIBS@
+
+CPPFLAGS = @CPPFLAGS@
+CFLAGS = @CFLAGS@
+LDSTATIC = @LDSTATIC@
+LDFLAGS = @LDFLAGS@
+
+SHELL_PROG = @SHELL_PROG@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+transform=@program_transform_name@
+
+bindir = $(exec_prefix)/bin
+mandir = $(prefix)/man/man$(manext)
+manext = 1
+
+# Suffix for executables: nothing for unix, .exe for os/2.
+exe_suffix=@ac_exe_suffix@
+
+SHELL = /bin/sh
+
+SRCS = alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
+       eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
+       main.c misc.c missing.c path.c shf.c sigact.c syn.c table.c trap.c \
+       tree.c tty.c var.c version.c vi.c
+OBJS = alloc.o c_ksh.o c_sh.o c_test.o c_ulimit.o edit.o emacs.o \
+       eval.o exec.o expr.o history.o io.o jobs.o lex.o mail.o \
+       main.o misc.o missing.o path.o shf.o sigact.o syn.o table.o trap.o \
+       tree.o tty.o var.o version.o vi.o
+HDRS = c_test.h edit.h expand.h ksh_dir.h ksh_limval.h ksh_stat.h ksh_time.h \
+       ksh_times.h ksh_wait.h lex.h proto.h sh.h shf.h sigact.h \
+       table.h tree.h tty.h
+DISTFILES = $(SRCS) $(HDRS) ksh.Man Makefile.in configure.in \
+       config.h.in conf-end.h acconfig.h aclocal.m4 emacs-gen.sh \
+       mkinstalldirs install-sh new-version.sh siglist.in siglist.sh mkman \
+       check-fd.c check-pgrp.c check-sigs.c \
+       README NEWS CONTRIBUTORS LEGAL PROJECTS INSTALL NOTES BUG-REPORTS \
+       IAFA-PACKAGE ChangeLog ChangeLog.0 configure stamp-h.in
+# ETCFILES also disted, but handled differently
+ETCFILES = etc/ksh.kshrc etc/profile etc/sys_config.sh
+# MISCFILES also disted, but handled differently
+MISCFILES = misc/ChangeLog.sjg misc/Changes.jrm misc/Changes.mlj \
+       misc/Changes.pc misc/README.sjg misc/ReadMe.eg misc/ReadMe.emacs \
+       misc/ReadMe.jrm misc/Bugs 
+# TESTFILES also disted, but handled differently
+TESTFILES = tests/README tests/th tests/th-sh tests/alias.t tests/arith.t \
+       tests/bksl-nl.t tests/brkcont.t tests/cdhist.t tests/eglob.t \
+       tests/glob.t tests/heredoc.t tests/history.t tests/ifs.t \
+       tests/integer.t tests/lineno.t tests/read.t tests/regress.t \
+       tests/syntax.t tests/unclass1.t tests/unclass2.t \
+       tests/version.t 
+# OS2FILES also disted, but handled differently
+OS2FILES = os2/Makefile os2/config.h os2/config.status os2/configure.cmd \
+       os2/emacs.out os2/kshrc.ksh os2/make.sed os2/os2.c os2/os2siglist.out \
+       os2/README.os2 os2/NEWS.os2 os2/os2bugs os2/th.cmd os2/config.cache
+
+all: $(SHELL_PROG)$(exe_suffix) $(SHELL_PROG).1
+
+# This shouldn't be first - some makes don't know about PRECIOUS and assume it
+# is the default target.
+.PRECIOUS: configure config.h.in Makefile config.status
+
+.c.o:
+       $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
+
+install: installdirs all
+       $(INSTALL_PROGRAM) $(SHELL_PROG)$(exe_suffix) $(bindir)/`echo $(SHELL_PROG)|sed '$(transform)'`$(exe_suffix)
+       -$(INSTALL_DATA) $(SHELL_PROG).1 $(mandir)/`echo $(SHELL_PROG)|sed '$(transform)'`.$(manext)
+       -@prog=$(bindir)/`echo $(SHELL_PROG)|sed '$(transform)'`$(exe_suffix);\
+           test -f /etc/shells \
+           && (grep "^$$prog\$$" /etc/shells > /dev/null \
+               || echo \
+"NOTE: /etc/shells does not contain $$prog \
+      you should add it if you want to set your shell to $(SHELL_PROG)")
+
+installdirs:
+       $(srcdir)/mkinstalldirs $(bindir) $(mandir)
+
+uninstall:
+       rm -f $(bindir)/`echo $(SHELL_PROG)|sed '$(transform)'`$(exe_suffix)
+       rm -f $(mandir)/`echo $(SHELL_PROG)|sed '$(transform)'`.$(manext)
+
+check test:
+       $(srcdir)/tests/th-sh $(srcdir)/tests/th -s $(srcdir)/tests -p ./$(SHELL_PROG)$(exe_suffix) -C pdksh,sh,ksh,posix,posix-upu $(TESTARGS)
+
+$(SHELL_PROG)$(exe_suffix): $(OBJS)
+       $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+
+# two steps to prevent the creation of a bogus tmpksh.1
+$(SHELL_PROG).1: $(srcdir)/ksh.Man
+       $(srcdir)/mkman $(SHELL_PROG) $(srcdir)/ksh.Man > tmpksh.1
+       mv tmpksh.1 $(SHELL_PROG).1
+
+info:
+       @echo "No info (yet)"
+
+dvi:
+
+$(srcdir)/configure: configure.in aclocal.m4
+       cd $(srcdir) && autoconf
+
+$(srcdir)/config.h.in: stamp-h.in
+$(srcdir)/stamp-h.in: configure.in aclocal.m4 acconfig.h
+       cd $(srcdir) && autoheader
+       date > $(srcdir)/stamp-h.in
+
+config.h: stamp-h
+stamp-h: config.h.in config.status
+       CONFIG_FILES="" CONFIG_HEADERS=config.h ./config.status
+       date > stamp-h
+
+Makefile: Makefile.in config.status
+       CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status
+
+config.status: configure
+       LDSTATIC="$(LDSTATIC)" ./config.status --recheck
+
+# two steps to prevent the creation of a bogus siglist.out
+siglist.out: config.h sh.h siglist.in siglist.sh
+       $(srcdir)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir)" < $(srcdir)/siglist.in > tmpsiglist.out
+       mv tmpsiglist.out siglist.out
+
+# two steps to prevent the creation of a bogus emacs.out
+emacs.out: emacs.c
+       $(srcdir)/emacs-gen.sh $(srcdir)/emacs.c > tmpemacs.out
+       mv tmpemacs.out emacs.out
+
+debugtools: check-fd$(exe_suffix) check-sigs$(exe_suffix) \
+       check-pgrp$(exe_suffix)
+
+check-fd.o check-pgrp.o check-sigs.o: config.h
+check-fd$(exe_suffix): check-fd.o
+       $(CC) $(LDFLAGS) -o $@ check-fd.o $(LIBS)
+
+check-pgrp$(exe_suffix): check-pgrp.o
+       $(CC) $(LDFLAGS) -o $@ check-pgrp.o $(LIBS)
+
+check-sigs$(exe_suffix): check-sigs.o
+       $(CC) $(LDFLAGS) -o $@ check-sigs.o $(LIBS)
+
+TAGS: $(SRCS) $(HDRS)
+       cd $(srcdir) && etags $(SRCS) $(HDRS)
+
+tags: $(SRCS) $(HDRS)
+       cd $(srcdir) && ctags -wt $(SRCS) $(HDRS)
+
+clean:
+       rm -f ksh$(exe_suffix) sh$(exe_suffix) ksh.1 sh.1 $(OBJS) siglist.out \
+             emacs.out core a.out mon.out gmon.out \
+             version.c.bak Makefile.bak Makefile.tmp check-fd$(exe_suffix) \
+             check-pgrp$(exe_suffix) check-sigs$(exe_suffix)
+
+mostlyclean: clean
+
+distclean: clean
+       rm -f Makefile config.h stamp-h config.status config.log config.cache \
+             tags TAGS *~
+
+realclean: distclean
+
+dist: $(DISTFILES) $(ETCFILES) $(MISCFILES) $(TESTFILES) $(OS2FILES)
+       cd $(srcdir) && \
+         { \
+           ./new-version.sh; \
+           FNAME=pdksh-`sed -e '/"@(.)/!d' \
+                   -e 's/[^0-9]*\([0-9.]*\).*/\1/' -e q version.c`; \
+           if test `echo $$FNAME|tr . ' '|wc -w|sed 's/[       ]*//g'` -gt 3; \
+           then \
+               FNAME=`echo $$FNAME | sed 's/pdksh-/pdksh-unstable-/'`; \
+           fi; \
+           echo Creating version $$FNAME; \
+           rm -rf $$FNAME; \
+           mkdir $$FNAME $$FNAME/etc $$FNAME/misc $$FNAME/tests $$FNAME/os2; \
+           cp -p $(DISTFILES) $$FNAME; \
+           cp -p $(ETCFILES) $$FNAME/etc; \
+           cp -p $(MISCFILES) $$FNAME/misc; \
+           cp -p $(TESTFILES) $$FNAME/tests; \
+           cp -p $(OS2FILES) $$FNAME/os2; \
+           ./emacs-gen.sh emacs.c > os2/emacs.out; \
+           test -x ./Dist-fixup && ./Dist-fixup $$FNAME; \
+           sed -f os2/make.sed < $$FNAME/Makefile.in > $$FNAME/os2/Makefile; \
+           chmod -R a+rX,u+w,og-w $$FNAME; \
+           tar chzf $$FNAME.tar.gz $$FNAME; \
+           find $$FNAME -print | xargs pathchk -p; \
+         }
+
+depend: $(SRCS)
+       sed -n '1,/[ ]PUT ANYTHING BELOW THIS LINE/p' < Makefile > Makefile.tmp
+       srcs=; for i in $(SRCS) ; do srcs="$$srcs $(srcdir)/$$i"; done; \
+         $(CC) -M $(DEFS) -I. -I$(srcdir) $(CFLAGS) $$srcs | \
+           sed -e 's?[         ]/[^    ]*??g' -e 's?[  ]./? ?g' \
+               -e 's?[         ]$(srcdir)//*? ?g' -e 's?^$(srcdir)//*??' \
+               -e '/^[         ]*\\[    ]*$$/d' -e '/^[^:]*:[   ]*$$/d' \
+               -e 's/^\([       ]*\)$$/ sh.h/' \
+           >> Makefile.tmp
+       mv Makefile.tmp Makefile
+       @echo 'Make depend done (stopping make)'; false
+
+# DON'T PUT ANYTHING BELOW THIS LINE (and don't delete it - its for make depend)
+alloc.o: alloc.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h
+c_ksh.o: c_ksh.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h ksh_stat.h \
+ sh.h
+c_sh.o: c_sh.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h ksh_stat.h ksh_time.h \
+ ksh_times.h \
+ sh.h
+c_test.o: c_test.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h ksh_stat.h c_test.h
+c_ulimit.o: c_ulimit.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h ksh_time.h \
+ sh.h
+edit.o: edit.c config.h conf-end.h sh.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h tty.h \
+ edit.h \
+ ksh_stat.h
+emacs.o: emacs.c config.h conf-end.h sh.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h ksh_stat.h ksh_dir.h \
+ edit.h emacs.out
+eval.o: eval.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h \
+ ksh_dir.h \
+ ksh_stat.h
+exec.o: exec.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h c_test.h \
+ ksh_stat.h
+expr.o: expr.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \
+ proto.h \
+ sh.h
+history.o: history.c sh.h config.h conf-end.h \
+ shf.h table.h tree.h expand.h lex.h \



Home | Main Index | Thread Index | Old Index