[= autogen5 template sh=check.sh =]
[=
#
-# This file contanes the shell template to run tests on the fixes
+# This file contains the shell template to run tests on the fixes
#
=]#!/bin/sh
(get "hackname") )) )
=][=
ELSE =]
-cat >> [=
- IF (exist? "files") =][=
- files[0] =][=
- ELSE =]testing.h[=
- ENDIF =] <<_HACK_EOF_
+cat >> [= (raw-shell-str (if (exist? "files") (get "files[0]") "testing.h"))
+ =] <<_HACK_EOF_
#if defined( [=(. HACK)=]_CHECK )
=]
+export TEST_MODE=true
find . -type f | sed 's;^\./;;' | sort | ../../fixincl
cd ${DESTDIR}
exec < ${TESTDIR}/LIST
while read f
do
+ if [ -n "$MSYSTEM" -o -n "$DJGPP" ]
+ then
+ # On MinGW and DJGPP convert line endings to avoid false positives
+ mv $f $f.dos; tr -d '\r' < $f.dos > $f; rm $f.dos
+ fi
if [ ! -f ${TESTBASE}/$f ]
then
echo "Newly fixed header: $f" >&2
cd $TESTBASE
-find * -type f -print | \
-fgrep -v '.svn/' > ${TESTDIR}/LIST
+find * -type f ! -name .DS_Store ! -name CVS ! -name .svn -print \
+> ${TESTDIR}/LIST
exitok=`
exec < ${TESTDIR}/LIST