This is still broken. Do not use it yet
From-SVN: r42518
This commit is contained in:
parent
c4df8f8c89
commit
865e0a8389
@ -1,4 +1,4 @@
|
|||||||
[= autogen template sh=check.sh =]
|
[= autogen5 template sh=check.sh =]
|
||||||
[=
|
[=
|
||||||
#
|
#
|
||||||
# This file contanes the shell template to run tests on the fixes
|
# This file contanes the shell template to run tests on the fixes
|
||||||
@ -30,7 +30,7 @@ mkdir ${DESTDIR} ${SRCDIR}
|
|||||||
set +e
|
set +e
|
||||||
for f in [=
|
for f in [=
|
||||||
|
|
||||||
_EVAL fix.files _stack _join "echo `
|
(shellf "echo `
|
||||||
|
|
||||||
for f in %s
|
for f in %s
|
||||||
do case $f in
|
do case $f in
|
||||||
@ -38,7 +38,7 @@ mkdir ${DESTDIR} ${SRCDIR}
|
|||||||
esac
|
esac
|
||||||
done | sort -u
|
done | sort -u
|
||||||
|
|
||||||
` " _printf _shell =]
|
` " (join " " (stack "fix.files")) ) =]
|
||||||
do
|
do
|
||||||
mkdir $f || mkdir -p $f
|
mkdir $f || mkdir -p $f
|
||||||
done ) > /dev/null 2>&1
|
done ) > /dev/null 2>&1
|
||||||
@ -46,61 +46,62 @@ mkdir ${DESTDIR} ${SRCDIR}
|
|||||||
cd inc
|
cd inc
|
||||||
[=
|
[=
|
||||||
|
|
||||||
_FOR fix =][=
|
FOR fix =][=
|
||||||
|
|
||||||
_IF test_text _count 1 > =]
|
IF (> (count "test_text") 1) =]
|
||||||
#
|
#
|
||||||
# [=hackname=] has [=_EVAL test_text _count=] tests
|
# [=hackname=] has [=(count "test_text")=] tests
|
||||||
#
|
#
|
||||||
sfile=[=
|
sfile=[=
|
||||||
_IF files _exist =][=
|
IF (exist? "files") =][=
|
||||||
files[0] =][=
|
files[] =][=
|
||||||
_ELSE =]testing.h[=
|
ELSE =]testing.h[=
|
||||||
_ENDIF =][=
|
ENDIF =][=
|
||||||
_FOR test_text FROM 1 =]
|
FOR test_text FROM 1 =]
|
||||||
dfile=`dirname $sfile`/[=hackname "#_A-Z" "#-a-z" _tr=]-[=_EVAL _index=].h
|
dfile=`dirname $sfile`/[=(string-tr! (get "hackname") "_A-Z" "-a-z")
|
||||||
|
=]-[=(for-index)=].h
|
||||||
cat >> $sfile <<_HACK_EOF_
|
cat >> $sfile <<_HACK_EOF_
|
||||||
|
|
||||||
|
|
||||||
#if defined( [=hackname _up=]_CHECK_[=_EVAL _index=] )
|
#if defined( [=(string-upcase! (get "hackname"))=]_CHECK_[=(for-index)=] )
|
||||||
[=test_text=]
|
[=test_text=]
|
||||||
#endif /* [=hackname _up=]_CHECK_[=_EVAL _index=] */
|
#endif /* [=(string-upcase! (get "hackname"))=]_CHECK_[=(for-index)=] */
|
||||||
_HACK_EOF_
|
_HACK_EOF_
|
||||||
echo $sfile | ../../fixincl
|
echo $sfile | ../../fixincl
|
||||||
mv -f $sfile $dfile
|
mv -f $sfile $dfile
|
||||||
[ -f ${DESTDIR}/$sfile ] && mv ${DESTDIR}/$sfile ${DESTDIR}/$dfile[=
|
[ -f ${DESTDIR}/$sfile ] && mv ${DESTDIR}/$sfile ${DESTDIR}/$dfile[=
|
||||||
/test_text =][=
|
ENDFOR test_text =][=
|
||||||
_ENDIF =][=
|
ENDIF =][=
|
||||||
|
|
||||||
/fix
|
ENDFOR fix
|
||||||
|
|
||||||
=][=
|
=][=
|
||||||
|
|
||||||
_FOR fix =][=
|
FOR fix =][=
|
||||||
|
|
||||||
_IF test_text _exist ! =][=
|
IF (not (exist? "test_text")) =][=
|
||||||
_IF replace _exist ! =]
|
IF (not (exist? "replace")) =]
|
||||||
echo No test for [=hackname=] in inc/[=
|
echo No test for [=hackname=] in inc/[=
|
||||||
_IF files _exist =][=
|
IF (exist? "files") =][=
|
||||||
files[0] =][=
|
files[0] =][=
|
||||||
_ELSE =]testing.h[=
|
ELSE =]testing.h[=
|
||||||
_ENDIF =][=
|
ENDIF =][=
|
||||||
_ENDIF =][=
|
ENDIF =][=
|
||||||
_ELSE =]
|
ELSE =]
|
||||||
cat >> [=
|
cat >> [=
|
||||||
_IF files _exist =][=
|
IF (exist? "files") =][=
|
||||||
files[0] =][=
|
files[0] =][=
|
||||||
_ELSE =]testing.h[=
|
ELSE =]testing.h[=
|
||||||
_ENDIF =] <<_HACK_EOF_
|
ENDIF =] <<_HACK_EOF_
|
||||||
|
|
||||||
|
|
||||||
#if defined( [=hackname _up=]_CHECK )
|
#if defined( [=(string-upcase! (get "hackname"))=]_CHECK )
|
||||||
[=test_text=]
|
[=test_text=]
|
||||||
#endif /* [=hackname _up=]_CHECK */
|
#endif /* [=(string-upcase! (get "hackname"))=]_CHECK */
|
||||||
_HACK_EOF_
|
_HACK_EOF_
|
||||||
[=_ENDIF =][=
|
[=ENDIF =][=
|
||||||
|
|
||||||
/fix
|
ENDFOR fix
|
||||||
|
|
||||||
=]
|
=]
|
||||||
|
|
||||||
@ -173,6 +174,6 @@ else
|
|||||||
fi
|
fi
|
||||||
$exitok[=
|
$exitok[=
|
||||||
|
|
||||||
_eval _outfile "chmod +x %s" _printf _shell
|
(set-writable)
|
||||||
|
|
||||||
=]
|
=]
|
||||||
|
Loading…
Reference in New Issue
Block a user