mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
00bdbb7fff
svn path=/nixpkgs/trunk/; revision=5152
20 lines
375 B
Bash
20 lines
375 B
Bash
source $stdenv/setup
|
|
|
|
ensureDir $out
|
|
|
|
dot2ps() {
|
|
sourceFile=$1
|
|
targetName=$out/$(basename $(stripHash $sourceFile; echo $strippedName) .dot).ps
|
|
echo "converting $sourceFile to $targetName..."
|
|
dot -Tps $sourceFile > $targetName
|
|
}
|
|
|
|
for i in $dotGraph; do
|
|
if test -d $i; then
|
|
for j in $i/*; do dot2ps $j; done
|
|
else
|
|
dot2ps $i
|
|
fi
|
|
done
|
|
|