OSDN Git Service

(sbusdev/audiovar.h): Fix wrongly edited // comments
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Sep 1993 19:10:46 +0000 (19:10 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Sep 1993 19:10:46 +0000 (19:10 +0000)
nested within /* */ comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5289 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixincludes

index e7a30dc..7d453a2 100755 (executable)
@@ -828,6 +828,17 @@ if [ -r ${LIB}/$file ]; then
   fi
 fi
 
+# Same problem with a file from SunOS 4.1.3 : a header file containing
+# the string "//" embedded in "/**/"
+file=sbusdev/audiovar.h
+if [ -r ${LIB}/$file ]; then
+  echo Fixing $file, overeager sed script
+  rm ${LIB}/$file
+  sed -e 's|//.*$||g' $file > ${LIB}/$file
+  chmod +w ${LIB}/$file 2>/dev/null
+  chmod a+r ${LIB}/$file 2>/dev/null
+fi
+
 # Fix non-ANSI memcpy declaration that conflicts with gcc's builtin
 # declaration on Sun OS 4.x.  We must only fix this on Sun OS 4.x, because
 # many other systems have similar text but correct versions of the file.