3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/tex/nix/animatedot.sh

10 lines
250 B
Bash
Raw Normal View History

source $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