[selinux-policy/f22] Fix source filepath for moving html files.

Lukas Vrabec lvrabec at fedoraproject.org
Wed Feb 25 16:26:24 UTC 2015


commit 14b4cb468661993492db7feef8560480c75910dc
Author: Lukas Vrabec <lvrabec at redhat.com>
Date:   Tue Feb 24 17:46:30 2015 +0100

    Fix source filepath for moving html files.

 selinux-policy.spec | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/selinux-policy.spec b/selinux-policy.spec
index 7e3de05..df4399a 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -407,11 +407,8 @@ echo  "xdg-open file:///usr/share/doc/selinux-policy/html/index.html"> %{buildro
 chmod +x %{buildroot}%{_usr}/share/selinux/devel/policyhelp
 /usr/bin/sepolicy manpage -a -p %{buildroot}/usr/share/man/man8/ -w -r %{buildroot}
 mkdir %{buildroot}%{_usr}/share/selinux/devel/html
-htmldir=`compgen -d %{buildroot}%{_usr}/share/man/man8/`
-mv ${htmldir}/* %{buildroot}%{_usr}/share/selinux/devel/html
-mv %{buildroot}%{_usr}/share/man/man8/index.html %{buildroot}%{_usr}/share/selinux/devel/html
+mv %{buildroot}%{_usr}/share/man/man8/*.html %{buildroot}%{_usr}/share/selinux/devel/html
 mv %{buildroot}%{_usr}/share/man/man8/style.css %{buildroot}%{_usr}/share/selinux/devel/html
-rm -rf ${htmldir}
 
 mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
 echo '%%_selinux_policy_version %{version}-%{release}' > %{buildroot}%{_rpmconfigdir}/macros.d/macros.selinux-policy


More information about the scm-commits mailing list