From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SXLwh-0006OI-J2 for garchives@archives.gentoo.org; Thu, 24 May 2012 00:30:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73294E0999; Thu, 24 May 2012 00:30:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 53BDBE0824 for ; Thu, 24 May 2012 00:29:38 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B7DF81B402C for ; Thu, 24 May 2012 00:29:37 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] enhancement for doicon/newicon in eutils.eclass Date: Wed, 23 May 2012 20:30:51 -0400 User-Agent: KMail/1.13.7 (Linux/3.4.0; KDE/4.6.5; x86_64; ; ) References: <4FB97D1D.9070004@gentoo.org> <201205212249.40692.vapier@gentoo.org> <4FBD7DCC.1010607@gentoo.org> In-Reply-To: <4FBD7DCC.1010607@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2763197.A2dtKlxvlf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201205232030.52446.vapier@gentoo.org> X-Archives-Salt: 6fc10e2f-9394-4a27-91ca-4216e483e34e X-Archives-Hash: 0c4ed12bab08a72a07f1552e85aeaeb0 --nextPart2763197.A2dtKlxvlf Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Wednesday 23 May 2012 20:16:12 hasufell wrote: > Thanks, I'v implemented most of that, but your proposal about > non-duplicated list in case) has multiple problems. The only cases > that actually work with that snippet are: > 16x16|22x22|24x24|32x32|36x36|48x48|64x64|72x72|96x96|scalable. > All others will fail (like 128x128 or just 48). so do: size= if [[ $2 == "scalable" ]] ; then size=$2 elif [[ ${2%%x*}x${2%%x*} == "$2" ]] ; then size=${2%%x*} case ${size} in 16|22|24|32|36|48|64|72|96|128|192|256) ;; *) size= ;; esac fi -mike --nextPart2763197.A2dtKlxvlf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPvYE8AAoJEEFjO5/oN/WBP8UP/A6Y80hyqhXKzcfkqQSKALg3 o5h3RsqyeCE+QbmPCkOnW7c2h9doVMnpJQ1T0xXHJ2Zddi+heW5FFB8iGSPRxPDs PptywqIcIgnG+brKX7g4xqW8ayiLgSm3Lz1kHZ0CEM3xOYDYErIshtTACPOC4TYe A4JGgeHtbCatWSvd974ua+WNovFeOW7/Ozafv645XbsTAUmLoxM4P9w3LC55hNGB KI8OwneANwdMXqyV7sR7n3rm4JPKbgzJmyKMfvcLX4uFzIzwrf3Kftkw6yUgRPp1 BuhestlkKrPdl8SLWYRFIcKvZ4SZyfBIGVc/yzRMXEPKCYdPSN+Tsa23xMIlxwPn AFByh52fx8UMtuJqL9ATG3To0g8xAkidjzar/mlgDfatkXo68KBFQMroJ0xC8Ip+ 3Ja0VWpWRsA7geHrF+8SNgl4BMAiZ7pr0Y07cQZ/1XnQtoqZcpMXn17tYO9cSXqK HF7qsFbjJIplFSbcfB8QyrBDeBSmBdMHbOyHpE1q1t9C+oDgOUeqcQM/S0sQpSPg It3GZrSLSkl0LFQcoN/Ta0Ge2NjKzZCOWEQ/xZqYr4kPbQ/kvIjDj9lbJuq1UCiY 4xPPEDZJi9NLmUbbu3DNQz/0tsHqQ9OfH7GpsyHXcZX8CENYtZakf7zqW54SzkR1 PN8tLOjkpCXN5h0Fdydh =YYtf -----END PGP SIGNATURE----- --nextPart2763197.A2dtKlxvlf--