mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-14 12:20:00 +02:00
Mise en place des nouvelles icones pour Windows
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@619 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
18
ico/windows_icon/generate_windows_icons.sh
Executable file
18
ico/windows_icon/generate_windows_icons.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Dependance : png2ico
|
||||
PNG_DIR="../oxygen-icons"
|
||||
|
||||
if [ -z "$(which png2ico 2> /dev/null)" ]; then
|
||||
echo "Error: png2ico not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function generateIcon {
|
||||
echo "Generating icon from files ${1}.png in ${PNG_DIR}."
|
||||
png2ico "${1}.ico" $(find "${PNG_DIR}" -name "${1}.png" | grep -v 2[25])
|
||||
}
|
||||
|
||||
generateIcon qelectrotech
|
||||
generateIcon application-x-qet-element
|
||||
generateIcon application-x-qet-project
|
||||
|
||||
Reference in New Issue
Block a user