from ./fixinc.interix. Untested (needs interix box).
* fixinc/inclhack.def:
Complete the change to the 'fixinc.tmp' file
+ Fixed regex for finding C++ headers
* fixincl.x, fixincl.sh, inclhack.sh: regenerate
Fri Apr 2 11:36:12 1999 Jan Hubicka (hubicka@paru.cas.cz)
#
# DO NOT EDIT THIS FILE (fixincl.sh)
#
-# It has been autogen-ed Thursday April 1, 1999 at 02:04:52 AM MST
-# From the definitions /puke/law//egcs/egcs/gcc/fixinc/inclhack.def
-# and the template file /puke/law//egcs/egcs/gcc/fixinc/inclhack.tpl
+# It has been autogen-ed Friday April 2, 1999 at 11:01:59 AM PST
+# From the definitions inclhack.def
+# and the template file inclhack.tpl
#
# Install modified versions of certain ANSI-incompatible system header
# files which are fixed to work correctly with ANSI C and placed in a
/*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been autogen-ed Thursday April 1, 1999 at 02:04:52 AM MST
- * From the definitions /puke/law//egcs/egcs/gcc/fixinc/inclhack.def
- * and the template file /puke/law//egcs/egcs/gcc/fixinc/fixincl.tpl
+ * It has been autogen-ed Friday April 2, 1999 at 11:01:59 AM PST
+ * From the definitions inclhack.def
+ * and the template file fixincl.tpl
*
* Install modified versions of certain ANSI-incompatible system header
* files which are fixed to work correctly with ANSI C and placed in a
* content test pattern. A shell will deal with it later.
*/
tSCC zNo_Double_SlashTest0[] =
- "-z \"`echo ${file}|egrep 'cxx/|++$|\\.hh$|\\.H$'`\"";
+ "-z \"`echo ${file}|egrep '(cxx/|\\+\\+$|\\.hh$|\\.H$|\\.hxx$)'`\"";
#define NO_DOUBLE_SLASH_TEST_CT 2
tTestDesc aNo_Double_SlashTests[] = {
*/
const char* apzZzz_Ki_IfacePatch[] = { "sh", "-c",
"echo \"Removing incorrect fix to <$file>\" >&2\n"
- "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n"
"cat > /dev/null",
(char*)NULL };
*/
const char* apzZzz_KiPatch[] = { "sh", "-c",
"echo \"Removing incorrect fix to <$file>\" >&2\n"
- "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n"
"cat > /dev/null",
(char*)NULL };
*/
const char* apzZzz_Ki_CallsPatch[] = { "sh", "-c",
"echo \"Removing incorrect fix to <$file>\" >&2\n"
- "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n"
"cat > /dev/null",
(char*)NULL };
*/
const char* apzZzz_Ki_DefsPatch[] = { "sh", "-c",
"echo \"Removing incorrect fix to <$file>\" >&2\n"
- "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n"
"cat > /dev/null",
(char*)NULL };
*/
const char* apzZzz_Bad_FixesPatch[] = { "sh", "-c",
"echo \"Removing incorrect fix to <$file>\" >&2\n"
- "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n"
"cat > /dev/null",
(char*)NULL };
*/
const char* apzZzz_TimePatch[] = { "sh", "-c",
"echo \"Removing incorrect fix to <$file>\" >&2\n"
- "rm -f ${DESTDIR}/$file ${DESTDIR}/$file.\n"
+ "rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp\n"
"cat > /dev/null",
(char*)NULL };
/*
* Test that the file-to-fix does not look like a C++ file
*/
- test = '-z "`echo ${file}|egrep \'cxx/|++$|\.hh$|\.H$\'`"';
+ test = '-z "`echo ${file}|egrep \'(cxx/|\+\+$|\.hh$|\.H$|\.hxx$)\'`"';
select = '//[^"*]';
sed = '/\/\/[^"*]/' "s|//.*$||g";
};
#
# DO NOT EDIT THIS FILE (inclhack.sh)
#
-# It has been autogen-ed Thursday April 1, 1999 at 02:04:52 AM MST
-# From the definitions /puke/law//egcs/egcs/gcc/fixinc/inclhack.def
-# and the template file /puke/law//egcs/egcs/gcc/fixinc/inclhack.tpl
+# It has been autogen-ed Friday April 2, 1999 at 11:01:59 AM PST
+# From the definitions inclhack.def
+# and the template file inclhack.tpl
#
# Install modified versions of certain ANSI-incompatible system header
# files which are fixed to work correctly with ANSI C and placed in a
# Fix 17: No_Double_Slash
#
if ( test -n "`egrep '//[^\"*]' ${file}`" -a \
- '(' -z "`echo ${file}|egrep 'cxx/|++$|\.hh$|\.H$'`" ')'
+ '(' -z "`echo ${file}|egrep '(cxx/|\+\+$|\.hh$|\.H$|\.hxx$)'`" ')'
) > /dev/null 2>&1 ; then
fixlist="${fixlist}
no_double_slash"
then infile=${file}
else infile=${DESTFILE} ; fi
( echo "Removing incorrect fix to <$file>" >&2
-rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp
cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
# Shell scripts have the potential of removing the output
then infile=${file}
else infile=${DESTFILE} ; fi
( echo "Removing incorrect fix to <$file>" >&2
-rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp
cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
# Shell scripts have the potential of removing the output
then infile=${file}
else infile=${DESTFILE} ; fi
( echo "Removing incorrect fix to <$file>" >&2
-rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp
cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
# Shell scripts have the potential of removing the output
then infile=${file}
else infile=${DESTFILE} ; fi
( echo "Removing incorrect fix to <$file>" >&2
-rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp
cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
# Shell scripts have the potential of removing the output
then infile=${file}
else infile=${DESTFILE} ; fi
( echo "Removing incorrect fix to <$file>" >&2
-rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp
cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
# Shell scripts have the potential of removing the output
then infile=${file}
else infile=${DESTFILE} ; fi
( echo "Removing incorrect fix to <$file>" >&2
-rm -f ${DESTDIR}/$file ${DESTDIR}/$file.
+rm -f ${DESTDIR}/$file ${DESTDIR}/fixinc.tmp
cat > /dev/null ) < $infile > ${DESTDIR}/fixinc.tmp
# Shell scripts have the potential of removing the output