aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/check.tpl
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2000-05-19 14:15:24 +0000
committerBruce Korb <korbb@gcc.gnu.org>2000-05-19 14:15:24 +0000
commitda6d3adf1e660ce6b7da0d422395664faded45cf (patch)
tree4106030b50a274de7cd09399962355987b57cc70 /gcc/fixinc/check.tpl
parentf2b339813f835813cd5a675d86c5a6342aa043e2 (diff)
downloadgcc-da6d3adf1e660ce6b7da0d422395664faded45cf.zip
gcc-da6d3adf1e660ce6b7da0d422395664faded45cf.tar.gz
gcc-da6d3adf1e660ce6b7da0d422395664faded45cf.tar.bz2
test_text cleanups
From-SVN: r34020
Diffstat (limited to 'gcc/fixinc/check.tpl')
-rw-r--r--gcc/fixinc/check.tpl22
1 files changed, 18 insertions, 4 deletions
diff --git a/gcc/fixinc/check.tpl b/gcc/fixinc/check.tpl
index e8b6082..10773a5 100644
--- a/gcc/fixinc/check.tpl
+++ b/gcc/fixinc/check.tpl
@@ -21,7 +21,21 @@ export TARGET_MACHINE DESTDIR SRCDIR FIND_BASE VERBOSE
mkdir ${DESTDIR} ${SRCDIR}
( cd ${SRCDIR}
- mkdir netinet rpc sparc sundev sunwindow sys X11 Xm )
+ set +e
+ for f in [=
+
+ _EVAL fix.files _stack _join "echo `
+
+ for f in %s
+ do case $f in
+ */* ) echo $f | sed 's;/[^/]*$;;' ;;
+ esac
+ done | sort -u
+
+ ` " _printf _shell =]
+ do
+ mkdir $f || mkdir -p $f
+ done ) > /dev/null 2>&1
[=
@@ -40,10 +54,10 @@ cat >> inc/[=
_IF files _exist =][=
files[0] =][=
_ELSE =]testing.h[=
- _ENDIF =] <<- '_HACK_EOF_'
+ _ENDIF =] <<- _HACK_EOF_
- #ifndef [=hackname _up=]_CHECK
+ #if defined( [=hackname _up=]_CHECK )
[=test_text "\t" _prefix=]
#endif /* [=hackname _up=]_CHECK */
_HACK_EOF_
@@ -65,7 +79,7 @@ do
echo "Only in inc: inc/$f"
else
diff -c inc/$f res/$f | \
- sed -e '1,2s; .*;;'
+ sed -e '1,2s; .*;;' -e '/MACH_DIFF:/,/no uniform test,/d'
fi
done > NEWDIFF < LIST