Skip to content

Instantly share code, notes, and snippets.

@ubinix-warun
Created January 27, 2014 10:14
Show Gist options
  • Save ubinix-warun/8646165 to your computer and use it in GitHub Desktop.
Save ubinix-warun/8646165 to your computer and use it in GitHub Desktop.
mkdir out dot
for f in $1/*.c;
do
filename=$(basename "$f")
echo "Processing ${filename%.*} file..";
cat $f | ./canalyze > ./dot/${filename%.*}.dot; dot -Tpng ./dot/${filename%.*}.dot -o ./out/${filename%.*}.png
done
echo "-------------------------------------------------------";
ls ./out/* -al | awk '{ print $5 "\t" $9 }' | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment