* 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.
This commit is contained in:
parent
358777b0d6
commit
15c3c5c65b
2 changed files with 16 additions and 11 deletions
|
@ -1,5 +1,9 @@
|
||||||
2005-05-12 Eli Zaretskii <eliz@gnu.org>
|
2005-05-12 Eli Zaretskii <eliz@gnu.org>
|
||||||
|
|
||||||
|
* 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
|
* gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
|
||||||
is_gnu_v3_mangled_ctor to avoid compiler warnings.
|
is_gnu_v3_mangled_ctor to avoid compiler warnings.
|
||||||
|
|
||||||
|
|
|
@ -8,18 +8,19 @@ fi
|
||||||
|
|
||||||
lang=$1 ; shift
|
lang=$1 ; shift
|
||||||
texi=$1 ; shift
|
texi=$1 ; shift
|
||||||
o=$1 ; shift
|
o=$1
|
||||||
echo "Creating ${o}-tmp" 1>&2
|
otmp="`echo $1 | sed -e 's,\.[^.]*$,,'`.tmp"; shift
|
||||||
rm -f ${o}-tmp
|
echo "Creating ${otmp}" 1>&2
|
||||||
|
rm -f ${otmp}
|
||||||
|
|
||||||
# Can use any of the following: cat cmp cp diff echo egrep expr false
|
# 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
|
# grep install-info ln ls mkdir mv pwd rm rmdir sed sleep sort tar
|
||||||
# test touch true
|
# test touch true
|
||||||
|
|
||||||
cat <<EOF >>${o}-tmp
|
cat <<EOF >>${otmp}
|
||||||
/* GDB Notifications to Observers.
|
/* GDB Notifications to Observers.
|
||||||
|
|
||||||
Copyright 2004 Free Software Foundation, Inc.
|
Copyright 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
@ -46,7 +47,7 @@ EOF
|
||||||
|
|
||||||
|
|
||||||
case $lang in
|
case $lang in
|
||||||
h) cat <<EOF >>${o}-tmp
|
h) cat <<EOF >>${otmp}
|
||||||
#ifndef OBSERVER_H
|
#ifndef OBSERVER_H
|
||||||
#define OBSERVER_H
|
#define OBSERVER_H
|
||||||
|
|
||||||
|
@ -87,7 +88,7 @@ sed -n '
|
||||||
' $texi | while read event formal actual
|
' $texi | while read event formal actual
|
||||||
do
|
do
|
||||||
case $lang in
|
case $lang in
|
||||||
h) cat <<EOF >>${o}-tmp
|
h) cat <<EOF >>${otmp}
|
||||||
|
|
||||||
/* ${event} notifications. */
|
/* ${event} notifications. */
|
||||||
|
|
||||||
|
@ -100,7 +101,7 @@ EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
inc)
|
inc)
|
||||||
cat <<EOF >>${o}-tmp
|
cat <<EOF >>${otmp}
|
||||||
|
|
||||||
/* ${event} notifications. */
|
/* ${event} notifications. */
|
||||||
|
|
||||||
|
@ -146,12 +147,12 @@ done
|
||||||
|
|
||||||
|
|
||||||
case $lang in
|
case $lang in
|
||||||
h) cat <<EOF >>${o}-tmp
|
h) cat <<EOF >>${otmp}
|
||||||
|
|
||||||
#endif /* OBSERVER_H */
|
#endif /* OBSERVER_H */
|
||||||
EOF
|
EOF
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
echo Moving ${o}-tmp to ${o}
|
echo Moving ${otmp} to ${o}
|
||||||
mv ${o}-tmp ${o}
|
mv ${otmp} ${o}
|
||||||
|
|
Loading…
Add table
Reference in a new issue