diff options
author | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-10-14 14:22:06 +0900 |
---|---|---|
committer | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-10-14 14:22:06 +0900 |
commit | 217f730dc7db8691b2ad499ac682c4387712ab4e (patch) | |
tree | ef0c79d7342608d0c680c63f8b4720eaa05e95b7 | |
parent | 4e07fc864d94c7f977644199d50dd4eae764e423 (diff) | |
download | docbook-xsl-stylesheets-tizen_6.0_hotfix.tar.gz docbook-xsl-stylesheets-tizen_6.0_hotfix.tar.bz2 docbook-xsl-stylesheets-tizen_6.0_hotfix.zip |
packaging: switch find calls from -exec to xargsHEADtizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_base/20210824.002740submit/tizen_6.5_base/20211028.133901submit/tizen_6.0_hotfix/20201103.115101submit/tizen_6.0_hotfix/20201102.192901submit/tizen_6.0/20201029.205501submit/tizen/20200130.074457accepted/tizen/unified/20200131.050613accepted/tizen/base/20210824.014422accepted/tizen/6.5/base/20211028.055522accepted/tizen/6.0/unified/hotfix/20201103.000647tizen_6.5_basetizen_6.0_hotfixtizen_6.0tizensandbox/backup/docbook-xsl-stylesheets-1.78.1-20211110accepted/tizen_unifiedaccepted/tizen_6.5_baseaccepted/tizen_6.0_unified_hotfix
The xargs approach is faster than -exec and in Tizen 3.0 cross-builds it grants
huge build acceleration due to tool acceleration system peculiarities.
Change-Id: I55d7393914b92603b8df1ce8df476d16864420b5
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
-rw-r--r-- | packaging/docbook-xsl-stylesheets.spec | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/docbook-xsl-stylesheets.spec b/packaging/docbook-xsl-stylesheets.spec index 4af1e5a..db5f234 100644 --- a/packaging/docbook-xsl-stylesheets.spec +++ b/packaging/docbook-xsl-stylesheets.spec @@ -62,7 +62,7 @@ sed -i 's=@@EPUBDIR@@=%{xml_mod_style_prod_dir}/current//epub/bin=' epub/bin/db # We don't need these scripts: rm -rf install.sh tools/bin/docbook-xsl-update -find -type f -exec chmod -x {} \; +find -type f -print0 |xargs -0 chmod -x chmod -R a+rX,g-w,o-w . chmod -x images/*.{svg,png,gif,tif} images/callouts/*.{svg,png,gif} extensions/docbook.py # Start cleanup (to avoid warnings for rpmlint @@ -128,7 +128,7 @@ doc_dir=%{buildroot}%{_defaultdocdir}/%{name} %{INSTALL_DIR} %{buildroot}%{xml_mod_style_prod_dir}/%{version} cp -a [[:lower:]]* %{buildroot}%{xml_mod_style_prod_dir}/%{version} cp -a VERSION.xsl %{buildroot}%{xml_mod_style_prod_dir}/%{version} -find %{buildroot}%{xml_mod_style_prod_dir} -type f -name '*.orig' -exec rm -f {} \; +find %{buildroot}%{xml_mod_style_prod_dir} -type f -name '*.orig' -print0 |xargs -0 rm -f rm -f %{buildroot}%{xml_mod_style_prod_dir}/%{version}/for-catalog* : >%{name}_list { |