-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use new SVG icons designed by sboddy
- Loading branch information
Showing
55 changed files
with
4,431 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
export SRC_FILE=IfcOpenShellLogos.svg | ||
|
||
ICONNAMES=$(inkscape -S ${SRC_FILE} 2>/dev/null | grep "Final" | grep -v "^bm_" | awk 'BEGIN{FS=","}{print $1}') | ||
|
||
for ICONNAME in ${ICONNAMES[@]}; do | ||
ICONNAME=${ICONNAME//"Final"/} | ||
echo "Exporting plain and cleaned ${ICONNAME}Final to SVGs/${ICONNAME}_plain.svg" | ||
inkscape -j -l --vacuum-defs -i ${ICONNAME}Final -o SVGs/${ICONNAME}_plain.svg ${SRC_FILE} 2>/dev/null | ||
echo "...now scouring (optimizing) it..." | ||
# Scour the svg to reduce it's size | ||
scour --renderer-workaround --enable-comment-stripping --indent=none --no-line-breaks --enable-id-stripping --shorten-ids SVGs/${ICONNAME}_plain.svg SVGs/${ICONNAME}.svg | ||
# Create a compressed version - work in Linux, not sure about Win/Mac. | ||
#echo "...now create a compressed version..." | ||
#scour SVGs/${ICONNAME}.svg SVGs/${ICONNAME}.svgz | ||
# Cleanup | ||
echo "...clean up..." | ||
rm SVGs/${ICONNAME}_plain.svg | ||
#rm SVGs/${ICONNAME}.svg | ||
echo "...and done!" | ||
done |
Oops, something went wrong.