nixpkgs/pkgs/misc/tex/nix/animatedot.sh
Eelco Dolstra b5a41376a7 * Don't use `seq'.
svn path=/nixpkgs/trunk/; revision=3281
2005-07-01 20:16:56 +00:00

10 lines
245 B
Bash

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