From: Andreas Schwab Date: Thu, 7 Jul 2005 13:11:16 +0000 (+0000) Subject: * observer.sh: Use different temporary file name depending on mode X-Git-Tag: gdb-csl-arm-20051020-branchpoint~805 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99efcb59ee538c876b7966d3e40c2ea22e0a6b20;p=external%2Fbinutils.git * observer.sh: Use different temporary file name depending on mode of operation to avoid clash during parallel build. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 30352b5..49e4c88 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-07-07 Andreas Schwab + + * observer.sh: Use different temporary file name depending on mode + of operation to avoid clash during parallel build. + 2005-07-06 Bob Rossi * fork-child.c (fork-inferior): Use accessor function for diff --git a/gdb/observer.sh b/gdb/observer.sh index 4c235ea..af69965 100755 --- a/gdb/observer.sh +++ b/gdb/observer.sh @@ -9,7 +9,11 @@ fi lang=$1 ; shift texi=$1 ; shift o=$1 -otmp="`echo $1 | sed -e 's,\.[^.]*$,,'`.tmp"; shift +case $lang in + h) tmp=htmp ;; + inc) tmp=itmp ;; +esac +otmp="`echo $1 | sed -e 's,\.[^.]*$,,'`.$tmp"; shift echo "Creating ${otmp}" 1>&2 rm -f ${otmp}