mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-14 14:04:45 +00:00
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:
parent
9ed9529fcf
commit
0357a40af5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user