5 echo "Unable to find/run exe ${TMPEXE}! *** FIX ME ***"
6 echo "Set the name of the 'tidy' executable to use..."
12 echo "Unable to creat ${TMPDIR}"
18 echo "The test of ${f} FAILED!";
19 TMPCNT3=$((${TMPCNT3} + 1));
22 TMPEXE="../../build/cmake/tidy5"
23 [ -e ${TMPEXE} ] || noexe
28 ${TMPEXE} -h > /dev/null || noexe
30 if [ ! -e "${TMPDIR}" ]; then
31 echo "Will create the folder ${TMPDIR} for output"
34 mkdir ${TMPDIR} || noout
37 # This option would be nice, but at present it is FARRRR TOOOOO agressive,
38 # dropping <html>, <body>, etc... because they are marked CM_OPT
39 # which causes WARNINGS when tidy is run on the tidied file!!!
40 # echo omit-optional-tags: yes >> ${TMPINP}
42 if [ ! -e "${TMPINP}" ]; then
43 echo "Creating a CONFIG file ${TMPINP}"
51 indent-attributes: yes
59 wrap-script-literals: no
70 for f in *.org.html; do
71 TMPCNT1=$((${TMPCNT1} + 1))
75 echo "Will process ${TMPCNT1} files found..."
76 echo "All should exit with NO WARNINGS or ERRORS"
77 echo "*** CONTINUE? *** Only Ctlr+C aborts... all other keys continue..."
81 for f in *.org.html ; do
82 TMPCNT2=$((${TMPCNT2} + 1))
84 echo "${TMPCNT2} of ${TMPCNT1}"
86 TMPOUT="${TMPDIR}/${f}"
87 ${TMPEXE} -config ${TMPINP} -o ${TMPOUT} ${f} || failed
91 echo Done ${TMPCNT2} files. See tidied output in ${TMPDIR}
92 if [ "${TMPCNT3}" = 0 ]; then
93 echo "With NO WARNINGS or ERRORS! This is a *** SUCCESS ***"
95 echo "However have ${TMPCNT3} WARNINGS or ERRORS! This is a *** FAILURE ***"