nixpkgs/pkgs/misc/tex/nix/animatedot.sh
Eelco Dolstra 6ea37d567f * A function for dot animation.
svn path=/nixpkgs/trunk/; revision=3255
2005-06-27 09:44:27 +00:00

10 lines
238 B
Bash

. $stdenv/setup
ensureDir $out
for i in $(seq 1 $nrFrames); do
echo "producing frame $i...";
targetName=$out/$(basename $(stripHash $dotGraph; echo $strippedName) .dot)-f-$i.dot
cpp -DFRAME=$i < $dotGraph > $targetName
done