make ghc_reindex_haddock safer when ghc-doc not installed

epel9
Jens Petersen 16 years ago
parent ab507b7b80
commit 49ce8a29d1

@ -56,5 +56,5 @@ install -m 755 register.sh unregister.sh ${RPM_BUILD_ROOT}%{pkg_libdir} \
%{nil} %{nil}
%ghc_reindex_haddock \ %ghc_reindex_haddock \
( cd %{_docdir}/ghc/libraries && ./gen_contents_index ) || : \ ( cd %{_docdir}/ghc/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index ) || : \
%{nil} %{nil}

Loading…
Cancel
Save