2005-07-29 Paul Brook <paul@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / observer.sh
index 92ca1b5ed5b19905e45f578623eb33a911a6a3cf..af699651d947fa2c4865016c90c7f7def20e90db 100755 (executable)
@@ -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}
 
@@ -61,7 +65,7 @@ esac
 # We are about to set IFS=:, so DOS-style file names with a drive
 # letter and a colon will be in trouble.
 
-if test -n $DJGPP
+if test -n "$DJGPP"
 then
      texi=`echo $texi | sed -e 's,^\([a-zA-Z]\):/,/dev/\1/,'`
 fi
This page took 0.024544 seconds and 4 git commands to generate.