From: | Mike Frysinger <vapier@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass | ||
Date: | Thu, 24 May 2012 00:30:28 | ||
Message-Id: | 201205232030.52446.vapier@gentoo.org | ||
In Reply to: | Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass by hasufell |
1 | On Wednesday 23 May 2012 20:16:12 hasufell wrote: |
2 | > Thanks, I'v implemented most of that, but your proposal about |
3 | > non-duplicated list in case) has multiple problems. The only cases |
4 | > that actually work with that snippet are: |
5 | > 16x16|22x22|24x24|32x32|36x36|48x48|64x64|72x72|96x96|scalable. |
6 | > All others will fail (like 128x128 or just 48). |
7 | |
8 | so do: |
9 | size= |
10 | if [[ $2 == "scalable" ]] ; then |
11 | size=$2 |
12 | elif [[ ${2%%x*}x${2%%x*} == "$2" ]] ; then |
13 | size=${2%%x*} |
14 | case ${size} in |
15 | 16|22|24|32|36|48|64|72|96|128|192|256) ;; |
16 | *) size= ;; |
17 | esac |
18 | fi |
19 | -mike |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass | hasufell <hasufell@g.o> |
Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass | hasufell <hasufell@g.o> |