From: Elan Ruusamäe Date: Mon, 3 Nov 2008 16:12:41 +0000 (+0000) Subject: - use shell constructs X-Git-Tag: auto/th/ca-certificates-20080809-4~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fca-certificates.git;a=commitdiff_plain;h=ebf0e82f7b1ffa3eacf52c582f834797afdb734d - use shell constructs Changed files: ca-certificates.spec -> 1.15 --- diff --git a/ca-certificates.spec b/ca-certificates.spec index b30a5a1..447ae48 100644 --- a/ca-certificates.spec +++ b/ca-certificates.spec @@ -72,9 +72,9 @@ Skrypt i dane do odświeżania bazy certyfikatów CA. %patch2 -p1 %patch3 -p1 -unzip %{SOURCE1} '*_b64.txt' -d thawte/ -for I in thawte/{,*/}*.txt; do - mv "$I" "`echo $I | sed -e 's|_b64.txt|.crt|' -e 's|/.*/|/|'`" +%{__unzip} -qq %{SOURCE1} '*_b64.txt' -d thawte +for a in thawte/{,*/}*.txt; do + mv "$a" "${a%_b64.txt}.crt" done install -d certum @@ -90,8 +90,8 @@ install %{SOURCE10} certum install %{SOURCE11} certum install %{SOURCE12} certum install %{SOURCE13} certum -for I in certum/*.pem; do - mv "$I" "`echo $I | sed -e 's|pem|crt|'`" +for a in certum/*.pem; do + mv "$a" "${a%.pem}.crt" done %build