]>
git.wh0rd.org - ICEs.git/blob - doit
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!?"
13 echo "initial whitespace/preproc filter"
14 cp ${FILE} ${FILE}.unfiltered
16 -e 's:[[:space:]]*::' \
20 if cmp -s ${FILE} ${FILE}.unfiltered
; then
21 rm -f ${FILE}.unfiltered
22 elif ! .
/reduce-ice
; then
23 echo "ERROR: filtered version breaks things !?"
28 dir
=$
(mktemp
-d -t reduce-ice.XXXXXX
)
30 ln -s $PWD/reduce-ice
$dir/
32 for x
in ${@:-0 0 1 1 2 2 5 5 10 10} ; do
33 multidelta
-level=$x .
/reduce-ice
$FILE
40 *.i|
*.ii|
*.c|
*.cxx
) Lindent
$FILE;;
43 if ! .
/reduce-ice
; then
44 echo "ERROR: lindent fucked it up!"
45 mv "${FILE}~" "${FILE}"