* Makefile.in (autoconf-install): New target.
authorDavid Edelsohn <dje.gcc@gmail.com>
Wed, 2 Apr 1997 23:10:34 +0000 (23:10 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 2 Apr 1997 23:10:34 +0000 (23:10 +0000)
sim/ChangeLog
sim/Makefile.in
sim/README-HACKING

index 729a0ceab2da58af724e9e2d6283c96d157c72ae..014ef6ddc39c86e9276cffdeedd8e52653a171a4 100644 (file)
@@ -1,6 +1,10 @@
+Wed Apr  2 15:09:05 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * Makefile.in (autoconf-install): New target.
+
 Wed Apr  2 14:25:52 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
 
-       * Makefile.in (autoconf-common-changelog): New target, update
+       * Makefile.in (autoconf-changelog): New target, update
        ChangeLog for all subdirectories - normally used after
        autoconf-common target.
 
index 6c2d2cf41539d2656c83a4ebb892c2399c0e4e04..92fd900a38044397bdf6fcae90732d8eedacebe5 100644 (file)
@@ -210,9 +210,11 @@ autoconf-common:
        done
 
 autoconf-changelog:
-       user="`finger $$USER | sed -n 's/^.*Name: //p'` <$$USER@`hostname`>" ; \
+       id="`id | sed -e 's/^[^(]*(\([^)]*\).*$$/\1/'`" ; \
+       name=`grep "^$$id:" /etc/passwd | cut -f 5 -d ':'` ; \
+       host="`hostname`" ; \
        date="`date | sed 's/ [^ ]* \([0-9]*\)$$/ \1/'`" ; \
-       echo "$$date $$user" ; \
+       echo "$$date $$name $$id@$$host" ; \
        for d in * ; \
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
@@ -220,7 +222,7 @@ autoconf-changelog:
                if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
                then \
                    echo "Creating new-ChangeLog in $$d ..." ; \
-                   ( echo "$$date  $$user" ; \
+                   ( echo "$$date  $$name  <$$id@$$host>" ; \
                      echo "" ; \
                      echo "    * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
                      echo "" ; \
@@ -229,3 +231,16 @@ autoconf-changelog:
                fi ; \
            fi ; \
        done
+
+autoconf-install:
+       for d in * ; \
+       do \
+           if [ -d $$d -a -f $$d/configure.in ] ; \
+           then \
+               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
+               then \
+                   echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
+                   mv $$d/new-ChangeLog $$d/ChangeLog ; \
+               fi ; \
+           fi ; \
+       done
index 93ccf3478f4a0c0cdb1b4e8a6daac1fcfa57acdd..48df341f4d9c2f61fae217b0012b0280ead5a7fa 100644 (file)
@@ -120,7 +120,7 @@ renaming):
 
        $  make -f Makefile.in autoconf-changelog
        $  more */new-ChangeLog
-       $  for f in */new-ChangeLog ; do echo $f ; mv $f `dirname $f`/ChangeLog ; done
+       $  make -f Makefile.in autoconf-install
 
 
 \f