Repair paths in mk_icn.sh
This commit is contained in:
parent
0283e2c246
commit
a5022e1e59
|
@ -10,14 +10,15 @@ rm icon_*.png
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
mkdir tmp/22 tmp/26 tmp/32 tmp/48 tmp/64 tmp/128 tmp/256 tmp/ico
|
mkdir tmp/22 tmp/26 tmp/32 tmp/48 tmp/64 tmp/128 tmp/256 tmp/ico
|
||||||
echo "all directories created."
|
echo "all directories created."
|
||||||
cd ../sources
|
cd ../sources/light
|
||||||
|
|
||||||
ICON_FILES="icon_3d.svg
|
ICON_FILES="icon_3d.svg
|
||||||
icon_gerbview.svg
|
icon_gerbview.svg
|
||||||
icon_kicad.svg
|
icon_kicad.svg
|
||||||
|
icon_kicad_nightly.svg
|
||||||
icon_bitmap2component.svg
|
icon_bitmap2component.svg
|
||||||
icon_pcbcalculator.svg
|
icon_pcbcalculator.svg
|
||||||
icon_pl_editor.svg
|
icon_pagelayout_editor.svg
|
||||||
icon_cvpcb.svg
|
icon_cvpcb.svg
|
||||||
icon_pcbnew.svg
|
icon_pcbnew.svg
|
||||||
icon_eeschema.svg
|
icon_eeschema.svg
|
||||||
|
@ -27,19 +28,19 @@ ICON_FILES="icon_3d.svg
|
||||||
for fl in $ICON_FILES
|
for fl in $ICON_FILES
|
||||||
do
|
do
|
||||||
NAME=${fl%.*} # strip the file extension
|
NAME=${fl%.*} # strip the file extension
|
||||||
inkscape -f $fl -e ../icons/tmp/22/$NAME.png -w 22 -h 22 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/22/$NAME.png -w 22 -h 22 --export-area-snap
|
||||||
inkscape -f $fl -e ../icons/tmp/26/$NAME.png -w 26 -h 26 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/26/$NAME.png -w 26 -h 26 --export-area-snap
|
||||||
inkscape -f $fl -e ../icons/tmp/32/$NAME.png -w 32 -h 32 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/32/$NAME.png -w 32 -h 32 --export-area-snap
|
||||||
inkscape -f $fl -e ../icons/tmp/48/$NAME.png -w 48 -h 48 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/48/$NAME.png -w 48 -h 48 --export-area-snap
|
||||||
inkscape -f $fl -e ../icons/tmp/64/$NAME.png -w 64 -h 64 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/64/$NAME.png -w 64 -h 64 --export-area-snap
|
||||||
inkscape -f $fl -e ../icons/tmp/128/$NAME.png -w 128 -h 128 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/128/$NAME.png -w 128 -h 128 --export-area-snap
|
||||||
inkscape -f $fl -e ../icons/tmp/256/$NAME.png -w 256 -h 256 --export-area-snap
|
inkscape -f $fl -e ../../icons/tmp/256/$NAME.png -w 256 -h 256 --export-area-snap
|
||||||
echo "file $fl converted."
|
echo "file $fl converted."
|
||||||
done
|
done
|
||||||
|
|
||||||
# convert .png files into .ico files using "icotool" from icoutils
|
# convert .png files into .ico files using "icotool" from icoutils
|
||||||
# (see http://www.nongnu.org/icoutils/)
|
# (see http://www.nongnu.org/icoutils/)
|
||||||
cd ../icons
|
cd ../../icons
|
||||||
for fl in $ICON_FILES
|
for fl in $ICON_FILES
|
||||||
do
|
do
|
||||||
NAME=${fl%.*} # strip the file extension
|
NAME=${fl%.*} # strip the file extension
|
||||||
|
|
Loading…
Reference in New Issue