[Erp5-report] r36250 kazuhiko - /erp5/trunk/utils/rpmgen/templates/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 10 20:28:35 CEST 2010


Author: kazuhiko
Date: Thu Jun 10 20:28:27 2010
New Revision: 36250

URL: http://svn.erp5.org?rev=36250&view=rev
Log:
use -exec instead of using xargs with pipe.

Modified:
    erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-fedora12.spec.in
    erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-mandriva2010.spec.in
    erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-opensuse11.2.spec.in

Modified: erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-fedora12.spec.in
URL: http://svn.erp5.org/erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-fedora12.spec.in?rev=36250&r1=36249&r2=36250&view=diff
==============================================================================
--- erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-fedora12.spec.in [utf8] (original)
+++ erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-fedora12.spec.in [utf8] Thu Jun 10 20:28:27 2010
@@ -32,8 +32,8 @@ cd %{installdir}
 python -S bootstrap/bootstrap.py
 bin/buildout -vv
 # cleanup .svn and .pyc files
-find %{installdir} -name .svn -print0 | xargs -0 %{__rm} -rf
-find %{installdir} -name '*.pyc' -print0 | xargs -0 %{__rm} -rf
+find %{installdir} -depth -name .svn -exec rm -rf {} \;
+find %{installdir} -depth -name '*.pyc' -exec rm -rf {} \;
 # tmp-storage created by openoffice build
 %{__rm} -rf tmp-storage
 

Modified: erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-mandriva2010.spec.in
URL: http://svn.erp5.org/erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-mandriva2010.spec.in?rev=36250&r1=36249&r2=36250&view=diff
==============================================================================
--- erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-mandriva2010.spec.in [utf8] (original)
+++ erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-mandriva2010.spec.in [utf8] Thu Jun 10 20:28:27 2010
@@ -33,8 +33,8 @@ cd %{installdir}
 python -S bootstrap/bootstrap.py
 bin/buildout -vv
 # cleanup .svn and .pyc files
-find %{installdir} -name .svn -print0 | xargs -0 %{__rm} -rf
-find %{installdir} -name '*.pyc' -print0 | xargs -0 %{__rm} -rf
+find %{installdir} -depth -name .svn -exec rm -rf {} \;
+find %{installdir} -depth -name '*.pyc' -exec rm -rf {} \;
 # tmp-storage created by openoffice build
 %{__rm} -rf tmp-storage
 

Modified: erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-opensuse11.2.spec.in
URL: http://svn.erp5.org/erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-opensuse11.2.spec.in?rev=36250&r1=36249&r2=36250&view=diff
==============================================================================
--- erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-opensuse11.2.spec.in [utf8] (original)
+++ erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-opensuse11.2.spec.in [utf8] Thu Jun 10 20:28:27 2010
@@ -32,8 +32,8 @@ cd %{installdir}
 python -S bootstrap/bootstrap.py
 bin/buildout -vv
 # cleanup .svn and .pyc files
-find %{installdir} -name .svn -print0 | xargs -0 %{__rm} -rf
-find %{installdir} -name '*.pyc' -print0 | xargs -0 %{__rm} -rf
+find %{installdir} -depth -name .svn -exec rm -rf {} \;
+find %{installdir} -depth -name '*.pyc' -exec rm -rf {} \;
 # tmp-storage created by openoffice build
 %{__rm} -rf tmp-storage
 




More information about the Erp5-report mailing list