2005-06-20 23:43:35 +01:00
|
|
|
. $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out
|
|
|
|
|
|
|
|
dot2pdf() {
|
|
|
|
sourceFile=$1
|
|
|
|
targetName=$out/$(basename $(stripHash $sourceFile; echo $strippedName) .dot).pdf
|
2005-06-21 21:34:15 +01:00
|
|
|
echo "converting $sourceFile to $targetName..."
|
2005-06-20 23:43:35 +01:00
|
|
|
dot -Tps $sourceFile > tmp.ps
|
|
|
|
epstopdf --outfile $targetName tmp.ps
|
|
|
|
}
|
|
|
|
|
|
|
|
for i in $dotGraph; do
|
|
|
|
if test -d $i; then
|
|
|
|
for j in $i/*; do dot2pdf $j; done
|
|
|
|
else
|
|
|
|
dot2pdf $i
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|