Whamcloud - gitweb
ChangeLog, Makefile.in, ct_c.awk, mk_cmds.sh.in:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jul 2000 12:34:34 +0000 (12:34 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jul 2000 12:34:34 +0000 (12:34 +0000)
  ct_c.awk: Work around a bug in gawk 3.05
  mk_cmds.sh.in: Allow the build system to override the standard
   location for finding the ct_c.* files by setting the _SS_DIR_OVERRIDE
   environment variable.
  Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the version in
   the source tree.
ChangeLog, Makefile.in:
  Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
   mk_cmds support files from the source tree.

lib/ss/ChangeLog
lib/ss/Makefile.in
lib/ss/ct_c.awk
lib/ss/mk_cmds.sh.in
tests/progs/ChangeLog
tests/progs/Makefile.in

index 6243f1d..714a240 100644 (file)
@@ -1,3 +1,14 @@
+2000-07-03    <tytso@snap.thunk.org>
+
+       * ct_c.awk: Work around a bug in gawk 3.05
+
+       * mk_cmds.sh.in: Allow the build system to override the standard
+               location for finding the ct_c.* files by setting the
+               _SS_DIR_OVERRIDE environment variable.
+
+       * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
+               version in the source tree.
+
 2000-05-25    <tytso@snap.thunk.org>
 
        * Makefile: Add hack dependency rule so that parallel makes work
index 658a7c1..6dd0f8c 100644 (file)
@@ -38,7 +38,7 @@ BSDLIB_INSTALL_DIR = $(root_libdir)
 
 TAGS=etags
 COMPILE_ET=../et/compile_et
-MK_CMDS=./mk_cmds
+MK_CMDS=_SS_DIR_OVERRIDE=. ./mk_cmds
 
 # -I.. is so that ss/ss_err.h works
 # -I$(srcdir)/.. is so that ss/ss.h works
@@ -108,7 +108,7 @@ FILES=      $(SRCS) $(MKCMDSFILES) $(HFILES) \
 
 all::  libss.a # libss_p.a lint
 
-std_rqs.c: std_rqs.ct $(MK_CMDS)
+std_rqs.c: std_rqs.ct mk_cmds
        DIR=$(srcdir) $(MK_CMDS) $(srcdir)/std_rqs.ct
 
 ss_err.c ss_err.h: ss_err.et
index 872f6e0..ef74145 100644 (file)
        print "    (char const *)0" > outfile
        print "};" > outfile 
        printf "extern void %s __SS_PROTO;\n", subr > outfile
-       subr_tab[cmdnum] = subr
-       options_tab[cmdnum] = options
-       help_tab[cmdnum] = help
+       # Work around a bug in gawk 3.0.5
+       awk_bug = cmdnum
+       subr_tab[awk_bug] = subr
+       options_tab[awk_bug] = options
+       help_tab[awk_bug] = help
 }
 
 /^[0-9]/ {
index 9ac9ce9..cc74274 100644 (file)
@@ -12,6 +12,10 @@ if test "x$1" = x ; then
     exit 1
 fi
 
+if test -n "$_SS_DIR_OVERRIDE" ; then
+    DIR=$_SS_DIR_OVERRIDE;
+fi
+
 if test ! -f $DIR/ct_c.sed -o ! -f $DIR/ct_c.awk ; then
     DIR=$SS_DIR
 #    echo "Falling back to $DIR..."
index e61e280..7757f92 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-04    <tytso@snap.thunk.org>
+
+       * Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
+               mk_cmds support files from the source tree.
+
 1999-11-19    <tytso@valinux.com>
 
        * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
index 249666a..a4f1362 100644 (file)
@@ -11,7 +11,7 @@ INSTALL = @INSTALL@
 
 @MCONFIG@
 
-MK_CMDS=       ../../lib/ss/mk_cmds
+MK_CMDS=       _SS_DIR_OVERRIDE=../../lib/ss ../../lib/ss/mk_cmds
 
 PROGS=         test_icount