about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/nix/animatedot.sh
blob: 1b5b2ce50795389ad14f563355d1c2b6d0ed02fb (plain) (blame)
1
2
3
4
5
6
7
8
9
source $stdenv/setup

mkdir -p $out

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