SPECS: pearize.sh - make it easy to nuke junk (template with backu...

glen glen at pld-linux.org
Tue Oct 4 01:17:19 CEST 2005


Author: glen                         Date: Mon Oct  3 23:17:19 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- make it easy to nuke junk (template with backup extension)

---- Files affected:
SPECS:
   pearize.sh (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/pearize.sh
diff -u SPECS/pearize.sh:1.18 SPECS/pearize.sh:1.19
--- SPECS/pearize.sh:1.18	Tue Oct  4 01:14:20 2005
+++ SPECS/pearize.sh	Tue Oct  4 01:17:14 2005
@@ -38,9 +38,11 @@
 @extra_headers@
 Optional: @optional@
 EOF
-template=$(rpm -q --qf "_pearize-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1)
+template=$(rpm -q --qf ".pearize-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1)
 
-pear makerpm --spec-template=$stmp --rpm-pkgname=_pearize $tarball
+pear makerpm --spec-template=$stmp --rpm-pkgname=.pearize $tarball
+mv $template $template~
+template=$template~
 
 requires=$(grep '^Requires:' $template || :)
 conflicts=$(grep '^Conflicts:' $template || :)
================================================================

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




More information about the pld-cvs-commit mailing list