]> gcc.gnu.org Git - gcc.git/commitdiff
fixincludes (sys/spinlock.h): change references of "../machine/*.h" to <machine/*.h>
authorDoug Evans <dje@gnu.org>
Wed, 29 Sep 1993 21:25:02 +0000 (21:25 +0000)
committerDoug Evans <dje@gnu.org>
Wed, 29 Sep 1993 21:25:02 +0000 (21:25 +0000)
* fixincludes (sys/spinlock.h): change references of
"../machine/*.h" to <machine/*.h>

From-SVN: r5531

gcc/fixincludes

index 313690f27771a78655e262ce019de9550641d332..b28f8792f1c062c4ba0b54f79db523afb46ab776 100755 (executable)
@@ -459,6 +459,23 @@ sed -e '/[         ]size_t.*;/i\
   fi
 fi
 
+# Fix HP's use of ../machine/inline.h to refer to
+# /usr/include/machine/inline.h
+file=sys/spinlock.h
+if [ ! -r ${LIB}/$file ] ; then
+  cp $file ${LIB}/$file
+fi
+if [ -r ${LIB}/$file ] ; then
+  echo Fixing $file
+  sed -e 's,"../machine/inline.h",<machine/inline.h>,' \
+    -e 's,"../machine/psl.h",<machine/psl.h>,' \
+  ${LIB}/$file > ${LIB}/${file}.sed
+  rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
+  if cmp $file ${LIB}/$file >/dev/null 2>&1; then
+    rm ${LIB}/$file
+  fi
+fi
+
 # Fix an error in this file: the #if says _cplusplus, not the double
 # underscore __cplusplus that it should be
 file=tinfo.h
This page took 0.069643 seconds and 5 git commands to generate.