aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-04-02 23:10:34 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-04-02 23:10:34 +0000
commitb04500b2c4393b233b8cb59aac802bac7f276b07 (patch)
treef23c52eadd97769e99342aa94729bbcd931d0bb9 /sim
parentba254dc504f848de3eef9af6162344675f5cd09f (diff)
downloadgdb-b04500b2c4393b233b8cb59aac802bac7f276b07.zip
gdb-b04500b2c4393b233b8cb59aac802bac7f276b07.tar.gz
gdb-b04500b2c4393b233b8cb59aac802bac7f276b07.tar.bz2
* Makefile.in (autoconf-install): New target.
Diffstat (limited to 'sim')
-rw-r--r--sim/ChangeLog6
-rw-r--r--sim/Makefile.in21
-rw-r--r--sim/README-HACKING2
3 files changed, 24 insertions, 5 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog
index 729a0ce..014ef6d 100644
--- a/sim/ChangeLog
+++ b/sim/ChangeLog
@@ -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.
diff --git a/sim/Makefile.in b/sim/Makefile.in
index 6c2d2cf..92fd900 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -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
diff --git a/sim/README-HACKING b/sim/README-HACKING
index 93ccf34..48df341 100644
--- a/sim/README-HACKING
+++ b/sim/README-HACKING
@@ -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