From bbbc8380e848bbf56257fae97d0990cb6f7d0e66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 15 Oct 2005 14:08:09 +0000 Subject: [PATCH] - grap output filename from pear command (fixes bad naming of php-pear-Crypt_Rc4 spec) Changed files: pearize.sh -> 1.28 --- pearize.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pearize.sh b/pearize.sh index 843d8b3..6da3190 100644 --- a/pearize.sh +++ b/pearize.sh @@ -42,10 +42,9 @@ Optional: @optional@ License: @release_license@ State: @release_state@ EOF -pear makerpm --spec-template=$stmp $tarball +template=$(pear makerpm --spec-template=$stmp $tarball | awk '/Wrote RPM spec file/{print $NF}{print $0 > "/dev/stderr"}') rm -f $stmp -template=$(rpm -q --qf "%{name}-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1) mv $template .$template~ template=.$template~ -- 2.44.0