X-Git-Url: https://git.wh0rd.org/?p=ICEs.git;a=blobdiff_plain;f=doit;fp=doit;h=33a56873e5e3f1c3a138fecdc6ab6a644a108221;hp=efbda892f820804367518d63ce6fad7a1ce8590f;hb=dbff64cb4b7530861c2309c794efdd4e0cf47a23;hpb=0e45bb161e4c1a7d89732e3b1e928f16ae16ef55 diff --git a/doit b/doit index efbda89..33a5687 100755 --- a/doit +++ b/doit @@ -9,12 +9,13 @@ if ! ./reduce-ice ; then exit 1 fi +if false ; then echo "initial whitespace/preproc filter" cp ${FILE} ${FILE}.unfiltered sed -i \ + -e 's:[[:space:]]*::' \ -e '/^$/d' \ -e '/^#/d' \ - -e 's:[[:space:]]*::' \ ${FILE} if cmp -s ${FILE} ${FILE}.unfiltered ; then rm -f ${FILE}.unfiltered @@ -22,10 +23,18 @@ elif ! ./reduce-ice ; then echo "ERROR: filtered version breaks things !?" exit 1 fi +fi +dir=$(mktemp -d -t reduce-ice.XXXXXX) +cp $FILE $dir/ +ln -s $PWD/reduce-ice $dir/ +pushd $dir for x in ${@:-0 0 1 1 2 2 5 5 10 10} ; do multidelta -level=$x ./reduce-ice $FILE done +popd +cp $dir/$FILE $FILE +rm -rf $dir case $FILE in *.i|*.ii|*.c|*.cxx) Lindent $FILE;;