]>
git.wh0rd.org - ICEs.git/blob - doit
efbda892f820804367518d63ce6fad7a1ce8590f
3 eval $
(grep ^FILE
= reduce-ice
)
5 [[ -z ${FILE} ]] && echo unable to
find FILE
&& exit 1
7 if ! .
/reduce-ice
; then
8 echo "ERROR: compiling code did not find string!?"
12 echo "initial whitespace/preproc filter"
13 cp ${FILE} ${FILE}.unfiltered
17 -e 's:[[:space:]]*::' \
19 if cmp -s ${FILE} ${FILE}.unfiltered
; then
20 rm -f ${FILE}.unfiltered
21 elif ! .
/reduce-ice
; then
22 echo "ERROR: filtered version breaks things !?"
26 for x
in ${@:-0 0 1 1 2 2 5 5 10 10} ; do
27 multidelta
-level=$x .
/reduce-ice
$FILE
31 *.i|
*.ii|
*.c|
*.cxx
) Lindent
$FILE;;
34 if ! .
/reduce-ice
; then
35 echo "ERROR: lindent fucked it up!"
36 mv "${FILE}~" "${FILE}"