rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 123722529fa7ac6383d8066481bc13f584eefa20
parent 8d8059fc729b5152b4b168944ce9399cc63cbf38
Author: tgoodwin <tgoodwin>
Date:   Thu, 12 Feb 1998 13:04:09 +0000

trying to get it working right

Diffstat:
MMakefile.am | 34+++++++++++++++++++++++++++++-----
1 file changed, 29 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am @@ -1,16 +1,27 @@ ## Process this file with automake to produce Makefile.in -bin_PROGRAMS = rc @HISTORY@ +if HISTORY +HISTBIN = history +HISTMAN = history.1 +else +HISTBIN = +HISTMAN = +endif -EXTRA_PROGRAMS = history +bin_PROGRAMS = rc +noinst_PROGRAMS = $(HISTBIN) rc_SOURCES = @ADDON@ builtins.c except.c exec.c execve.c fn.c footobar.c getopt.c glob.c glom.c hash.c heredoc.c input.c lex.c list.c main.c match.c nalloc.c open.c print.c redir.c sigmsgs.c signal.c status.c tree.c utils.c var.c version.c wait.c walk.c which.c y.tab.c -noinst_HEADERS = addon.h group.h jbwrap.h proto.h rc.h rlimit.h y.tab.h +history_SOURCES = history.c -noinst_DATA = EXAMPLES mksignal parse.y trip.rc +noinst_HEADERS = group.h jbwrap.h proto.h rc.h rlimit.h y.tab.h -BUILT_SOURCES = sigmsgs.c sigmsgs.h y.tab.c y.tab.h +BUILT_SOURCES = sigmsgs.c y.tab.c + +man_MANS = rc.1 $(HISTMAN) + +EXTRA_DIST = addon.c addon.h EXAMPLES history.1 mksignal parse.y rc.1 trip.rc sigmsgs.c sigmsgs.h: $(srcdir)/mksignal sh $(srcdir)/mksignal @SIGNAL_H@ @@ -20,3 +31,16 @@ y.tab.c: $(srcdir)/parse.y trip: rc ./rc -p < $(srcdir)/trip.rc + +install-exec-hook: + case "x@HISTORY@" in \ + x) \ + ;; \ + *) \ + $(LN) $(HISTORY) - ;\ + $(INSTALL_PROGRAM) - $(bindir) ;\ + $(LN) $(bindir)/- $(bindir)/-- ;\ + $(LN) $(bindir)/- $(bindir)/-p ;\ + $(LN) $(bindir)/- $(bindir)/--p ;\ + ;; \ + esac