summary refs log tree commit diff
path: root/pkgs/misc/tex/nix/animatedot.sh
blob: 46a2c515e03ae259e18da3d4d6010b31b83a58e6 (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/$(basename $(stripHash $dotGraph; echo $strippedName) .dot)-f-$i.dot
    cpp -DFRAME=$i < $dotGraph > $targetName
done