SPECS: pearize.sh - grap output filename from pear command (fixes ...

glen glen at pld-linux.org
Sat Oct 15 16:08:15 CEST 2005


Author: glen                         Date: Sat Oct 15 14:08:15 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- grap output filename from pear command (fixes bad naming of php-pear-Crypt_Rc4 spec)

---- Files affected:
SPECS:
   pearize.sh (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SPECS/pearize.sh
diff -u SPECS/pearize.sh:1.27 SPECS/pearize.sh:1.28
--- SPECS/pearize.sh:1.27	Sat Oct 15 15:55:56 2005
+++ SPECS/pearize.sh	Sat Oct 15 16:08:09 2005
@@ -42,10 +42,9 @@
 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~
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pearize.sh?r1=1.27&r2=1.28&f=u




More information about the pld-cvs-commit mailing list