From: Eli Zaretskii Date: Thu, 12 May 2005 15:44:19 +0000 (+0000) Subject: * observer.sh: Use observer.tmp instead of observer.inc-tmp which X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15c3c5c65b6cda5791130a57145cc6feee04fdaf;p=binutils-gdb.git * observer.sh: Use observer.tmp instead of observer.inc-tmp which on 8+3 filesystems overwrites observer.inc. Update copyright year of the resultant file. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5cefd6d75fa..da4fd298758 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2005-05-12 Eli Zaretskii + * observer.sh: Use observer.tmp instead of observer.inc-tmp which + on 8+3 filesystems overwrites observer.inc. Update copyright year + of the resultant file. + * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and is_gnu_v3_mangled_ctor to avoid compiler warnings. diff --git a/gdb/observer.sh b/gdb/observer.sh index b23f15e044a..fb92b635673 100755 --- a/gdb/observer.sh +++ b/gdb/observer.sh @@ -8,18 +8,19 @@ fi lang=$1 ; shift texi=$1 ; shift -o=$1 ; shift -echo "Creating ${o}-tmp" 1>&2 -rm -f ${o}-tmp +o=$1 +otmp="`echo $1 | sed -e 's,\.[^.]*$,,'`.tmp"; shift +echo "Creating ${otmp}" 1>&2 +rm -f ${otmp} # Can use any of the following: cat cmp cp diff echo egrep expr false # grep install-info ln ls mkdir mv pwd rm rmdir sed sleep sort tar # test touch true -cat <>${o}-tmp +cat <>${otmp} /* GDB Notifications to Observers. - Copyright 2004 Free Software Foundation, Inc. + Copyright 2004, 2005 Free Software Foundation, Inc. This file is part of GDB. @@ -46,7 +47,7 @@ EOF case $lang in - h) cat <>${o}-tmp + h) cat <>${otmp} #ifndef OBSERVER_H #define OBSERVER_H @@ -87,7 +88,7 @@ sed -n ' ' $texi | while read event formal actual do case $lang in - h) cat <>${o}-tmp + h) cat <>${otmp} /* ${event} notifications. */ @@ -100,7 +101,7 @@ EOF ;; inc) - cat <>${o}-tmp + cat <>${otmp} /* ${event} notifications. */ @@ -146,12 +147,12 @@ done case $lang in - h) cat <>${o}-tmp + h) cat <>${otmp} #endif /* OBSERVER_H */ EOF esac -echo Moving ${o}-tmp to ${o} -mv ${o}-tmp ${o} +echo Moving ${otmp} to ${o} +mv ${otmp} ${o}