]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
rebrand: also add TGA icons (possibly converted from png)
authorRudolf Polzer <divverent@alientrap.org>
Fri, 27 Aug 2010 05:41:32 +0000 (07:41 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 27 Aug 2010 05:41:32 +0000 (07:41 +0200)
misc/tools/rebrand-darkplaces-engine.sh
misc/tools/xonotic.brand

index 9c785ff432001827f0963752dc9424f42d87401e..0e911bb37ecf750b2f0160e9d8c0faf854827bc4 100755 (executable)
@@ -10,6 +10,7 @@ userdirname=darkplaces
 icon_icns=Darkplaces.app/Contents/Resources/Darkplaces.icns
 icon_ico=darkplaces.ico
 icon_xpm=darkplaces.xpm
+icons_tga=
 
 if [ -z "$1" ] || [ x"$1" = x"--help" ]; then
        echo "Usage: $0 brandfile binaries..."
@@ -64,8 +65,17 @@ for EXECUTABLE in "$@"; do
 
        if $uses_xpm; then
                cp "$icon_xpm" "$t/darkplaces-icon.xpm"
+               cnt=
+               for i in $icons_tga; do
+                       convert "$i" "$t/darkplaces-icon$cnt.tga"
+                       if [ -z "$cnt" ]; then
+                               cnt=2
+                       else
+                               cnt=$(($cnt+1))
+                       fi
+               done
                cd "$t"
-               zip -9r darkplaces-this.zip darkplaces-icon.xpm
+               zip -9r darkplaces-this.zip darkplaces-icon*
                cd "$d"
        fi
 
index 14ac4fc2fa69a6fff9cedad8dc8c823d6fdc6dba..af1ed9eca1407c9541c176d3dfcfa4e71026727f 100644 (file)
@@ -7,3 +7,4 @@ userdirname=xonotic
 icon_icns="$d0/misc/logos/icons_icns/xonotic.icns"
 icon_ico="$d0/misc/logos/icons_ico/xonotic_64.ico"
 icon_xpm="$d0/misc/logos/icons_xpm/xonotic_32.xpm"
+icons_tga="$d0/misc/logos/icons_png/xonotic_64.png $d0/misc/logos/icons_png/xonotic_16.png $d0/misc/logos/icons_png/xonotic_22.png $d0/misc/logos/icons_png/xonotic_24.png $d0/misc/logos/icons_png/xonotic_32.png $d0/misc/logos/icons_png/xonotic_48.png $d0/misc/logos/icons_png/xonotic_128.png $d0/misc/logos/icons_png/xonotic_256.png $d0/misc/logos/icons_png/xonotic_512.png"