summary refs log tree commit diff
path: root/pkgs/misc/tex/nix/animatedot.sh
blob: 2e1868d4bebddf5a3cfee035f24d3ff64dcabec5 (plain) (blame)
1
2
3
4
5
6
7
8
9
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