qelectrotech-source-mirror/ico/windows_icon/generate_windows_icons.sh
nuri 9f3024545f Set the KDE "Breeze" icon theme as new icon theme for QElectroTech
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5108 bfdf4180-ca20-0410-9c96-a3a8aa849046
2017-11-25 07:44:38 +00:00

20 lines
469 B
Bash
Executable File

#!/bin/bash
# Dependance : png2ico
PNG_DIR="../breeze-icons"
if [ -z "$(which icotool 2> /dev/null)" ]; then
echo "Error: icotool not found."
exit 1
fi
function generateIcon {
echo "Generating icon from files ${1}.png in ${PNG_DIR}."
icotool -c -o "${1}.ico" $(find "${PNG_DIR}" -name "${1}.png" | grep -v 2[25])
}
generateIcon qelectrotech
generateIcon application-x-qet-element
generateIcon application-x-qet-project
generateIcon application-x-qet-titleblock