RELEASE/1.2
debug-ci
debug-ci-sanitisers
faster-cavernlog
log-select
main
stereo
stereo-2025
walls-data
walls-data-hanging-as-warning
warn-only-for-hanging-survey
|
Last change
on this file since a7d4233 was 23b7e24, checked in by Olly Betts <olly@…>, 11 years ago |
|
lib/icons/svg2iconsetzip: Fix hard-coded icon name.
|
-
Property mode
set to
100755
|
|
File size:
536 bytes
|
| Rev | Line | |
|---|
| [87900bb] | 1 | #!/bin/sh
|
|---|
| 2 | set -e
|
|---|
| 3 |
|
|---|
| 4 | case $1 in
|
|---|
| 5 | -*) in=./$1 ;;
|
|---|
| 6 | *) in=$1 ;;
|
|---|
| 7 | esac
|
|---|
| 8 | case $2 in
|
|---|
| 9 | -*) out=./$2 ;;
|
|---|
| 10 | *) out=$2 ;;
|
|---|
| 11 | esac
|
|---|
| 12 | tmp=`echo "$out"|sed 's/\.zip$//'`
|
|---|
| 13 |
|
|---|
| 14 | rm -rf "$tmp"
|
|---|
| 15 | mkdir "$tmp"
|
|---|
| 16 | for r in 16 32 128 256 512 ; do
|
|---|
| 17 | inkscape -w "$r" -h "$r" -e "$tmp/icon_${r}x${r}.png" "$in"
|
|---|
| 18 | done
|
|---|
| 19 | for r in 16 128 256 ; do
|
|---|
| 20 | d=`expr $r + $r`
|
|---|
| [23b7e24] | 21 | ln "$tmp/icon_${d}x${d}.png" "$tmp/icon_${r}x${r}@2x.png"
|
|---|
| [87900bb] | 22 | done
|
|---|
| 23 | for r in 32 512 ; do
|
|---|
| 24 | d=`expr $r + $r`
|
|---|
| 25 | inkscape -w "$d" -h "$d" -e "$tmp/icon_${r}x${r}@2x.png" "$in"
|
|---|
| 26 | done
|
|---|
| 27 | rm -f "$out"
|
|---|
| 28 | zip --move -r "$out" "$tmp"
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.