mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
82e678362f
svn path=/nixpkgs/trunk/; revision=4335
21 lines
416 B
Bash
21 lines
416 B
Bash
source $stdenv/setup
|
|
|
|
ensureDir $out
|
|
|
|
dot2pdf() {
|
|
sourceFile=$1
|
|
targetName=$out/$(basename $(stripHash $sourceFile; echo $strippedName) .dot).pdf
|
|
echo "converting $sourceFile to $targetName..."
|
|
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
|
|
|