diff options
author | Bruce Korb <bkorb@gnu.org> | 2000-05-11 13:41:12 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2000-05-11 13:41:12 +0000 |
commit | 35dfe41582cd24b566f56060ec3808a04a9a6909 (patch) | |
tree | 56fe6d3cc1eea556ac96953893b16dc1559b0925 /gcc/fixinc/check.tpl | |
parent | e54d500c8d8760c51e20259c6aa97471e1cf04cc (diff) | |
download | gcc-35dfe41582cd24b566f56060ec3808a04a9a6909.zip gcc-35dfe41582cd24b566f56060ec3808a04a9a6909.tar.gz gcc-35dfe41582cd24b566f56060ec3808a04a9a6909.tar.bz2 |
Added support for "make check" and the "format" c_fix
From-SVN: r33843
Diffstat (limited to 'gcc/fixinc/check.tpl')
-rw-r--r-- | gcc/fixinc/check.tpl | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/gcc/fixinc/check.tpl b/gcc/fixinc/check.tpl index bf71036..56276a0 100644 --- a/gcc/fixinc/check.tpl +++ b/gcc/fixinc/check.tpl @@ -14,8 +14,9 @@ TARGET_MACHINE='*' DESTDIR=`pwd`/res SRCDIR=`pwd`/inc FIND_BASE='.' +VERBOSE=1 -export TARGET_MACHINE DESTDIR SRCDIR FIND_BASE +export TARGET_MACHINE DESTDIR SRCDIR FIND_BASE VERBOSE mkdir ${DESTDIR} ${SRCDIR} @@ -39,7 +40,6 @@ cat >> inc/[= #ifndef [=hackname _up=]_CHECK - #define [=hackname _up=]_CHECK [=test_text "\t" _prefix=] #endif /* [=hackname _up=]_CHECK */ _HACK_EOF_ @@ -50,11 +50,21 @@ _HACK_EOF_ =] cd inc -find . -type f | ../../fixincl +find . -type f | sed 's;\./;;' | sort > ../LIST +../../fixincl < ../LIST cd .. -diff -cr inc res | \ - sed -e 's;^\(\*\*\* inc/[^ ]*\) .*$;\1;' \ - -e 's;^\(--- res/[^ ]*\) .*$;\1;' > NEWDIFF + +while read f +do + if [ ! -f res/$f ] + then + echo "Only in inc: inc/$f" + else + diff -c inc/$f res/$f | \ + sed -e '1,2s; .*;;' + fi +done > NEWDIFF < LIST + echo echo Test output check: [= @@ -63,7 +73,7 @@ _FOR fix =][= _IF test_text _exist =] fgrep [=hackname _up=]_CHECK NEWDIFF > /dev/null 2>&1 || \ - echo "[=_eval hackname _get "#%32s test failed. See inc/" + echo "[=_eval hackname _get "#%32s test failed. See testdir/inc/" _printf =][= _IF files _exist =][= files[0] =][= |