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..."
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
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"