Clean up scripts/*

* scripts/dot_to_png.sh: Clean up the script according to
	shellcheck warnings and remarks.
	* scripts/dot_to_svg.sh: Likewise.
	* scripts/svg_to_plain_svg.sh: Likewise.
	* scripts/svg_to_png_and_pdf.sh: Likewise.

Signed-off-by: Ondrej Oprala <ondrej.oprala@gmail.com>
This commit is contained in:
Ondrej Oprala 2017-04-11 16:57:07 +02:00 committed by Dodji Seketeli
parent 9ed9529fcf
commit 0357a40af5
4 changed files with 16 additions and 16 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/bin/bash
for i in *.gv
do
echo $i
outputpng=`echo $i | sed -e 's/gv/png/'`;
echo $outputpng
dot -v -Tpng:cairo -o $outputpng $i;
echo "$i"
outputpng=${i//gv/png}
echo "$outputpng"
dot -v -Tpng:cairo -o "$outputpng" "$i"
done

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/bin/bash
for i in *.gv
do
echo $i
outputsvg=`echo $i | sed -e 's/gv/svg/'`;
echo $outputsvg
dot -v -Tsvg:cairo -o $outputsvg $i;
echo "$i"
outputsvg=${i//gv/svg}
echo "$outputsvg"
dot -v -Tsvg:cairo -o "$outputsvg" "$i"
done

View File

@ -1,5 +1,5 @@
#!/bin/bash
#!/bin/bash
for i in *.svg;
do inkscape $i --export-plain-svg=`echo $i | sed -e 's/svg$/plain.svg/'`;
for i in *.svg;
do inkscape "$i" --export-plain-svg="${i//svg/plain.svg}"
done

View File

@ -1,5 +1,5 @@
#!/bin/bash
#!/bin/bash
for i in *.svg;
do inkscape $i --export-png=`echo $i | sed -e 's/svg$/png/'` --export-pdf=`echo $i | sed -e 's/svg$/pdf/'`;
for i in *.svg;
do inkscape "$i" --export-png="${i//svg/png}" --export-pdf="${i//svg/pdf}"
done