bef6bef0d2
`stripHash` documentation states that it prints out the stripped name to the stdout, but the function stored the value in `strippedName` instead. Basically all usages did something like `$(stripHash $foo | echo $strippedName)` which is just braindamaged. Fixed the implementation and all invocations.
21 lines
397 B
Bash
21 lines
397 B
Bash
source $stdenv/setup
|
|
|
|
mkdir -p $out
|
|
|
|
dot2pdf() {
|
|
sourceFile=$1
|
|
targetName=$out/$(basename $(stripHash $sourceFile) .dot).pdf
|
|
echo "converting $sourceFile to $targetName..."
|
|
export FONTCONFIG_FILE=$fontsConf
|
|
dot -Tpdf $sourceFile > $targetName
|
|
}
|
|
|
|
for i in $dotGraph; do
|
|
if test -d $i; then
|
|
for j in $i/*; do dot2pdf $j; done
|
|
else
|
|
dot2pdf $i
|
|
fi
|
|
done
|
|
|