summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongkyun, Son <dongkyun.s@samsung.com>2016-10-14 05:22:06 (GMT)
committerDongkyun, Son <dongkyun.s@samsung.com>2016-10-14 05:22:06 (GMT)
commit217f730dc7db8691b2ad499ac682c4387712ab4e (patch)
treeef0c79d7342608d0c680c63f8b4720eaa05e95b7
parent4e07fc864d94c7f977644199d50dd4eae764e423 (diff)
downloaddocbook-xsl-stylesheets-tizen.zip
docbook-xsl-stylesheets-tizen.tar.gz
docbook-xsl-stylesheets-tizen.tar.bz2
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.spec4
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
{