diff --git a/texlive-specs-n.changes b/texlive-specs-n.changes index a0f32a3..49dcbe6 100644 --- a/texlive-specs-n.changes +++ b/texlive-specs-n.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 15 13:43:57 UTC 2015 - werner@suse.de + +- Handle unkown scripts + ------------------------------------------------------------------- Tue Apr 14 13:53:08 UTC 2015 - werner@suse.de diff --git a/texlive-specs-n.spec b/texlive-specs-n.spec index e83c550..51a316a 100644 --- a/texlive-specs-n.spec +++ b/texlive-specs-n.spec @@ -9011,8 +9011,8 @@ rm -f /var/run/texlive/run-update # Strip executable bit from non-scripts for txt in %{_texmfdistdir}/scripts/logicpuzzle/simple.smc do -\ttest -e %{buildroot}/$txt || continue -\tchmod 0644 %{buildroot}/$txt + test -e %{buildroot}/$txt || continue + chmod 0644 %{buildroot}/$txt done ln -sf %{_texmfdistdir}/texconfig/zypper.py \ %{buildroot}/var/adm/update-scripts/texlive-logpap-%{texlive_version}.%{texlive_noarch}.0.0.6svn15878-%{release}-zypper @@ -9219,8 +9219,8 @@ rm -f /var/run/texlive/run-update # Strip executable bit from non-scripts for txt in %{_texmfdistdir}/scripts/lua2dox/lua.def do -\ttest -e %{buildroot}/$txt || continue -\tchmod 0644 %{buildroot}/$txt + test -e %{buildroot}/$txt || continue + chmod 0644 %{buildroot}/$txt done ln -sf %{_texmfdistdir}/texconfig/zypper.py \ %{buildroot}/var/adm/update-scripts/texlive-luabibentry-%{texlive_version}.%{texlive_noarch}.0.0.1asvn31783-%{release}-zypper @@ -9401,11 +9401,18 @@ rm -f /var/run/texlive/run-update %{buildroot}/var/adm/update-scripts/texlive-m-tx-%{texlive_version}.%{texlive_noarch}.0.0.60dsvn33825-%{release}-zypper tar --use-compress-program=xz -xf %{S:131} -C %{buildroot}%{_datadir}/texlive tar --use-compress-program=xz -xf %{S:132} -C %{buildroot}%{_datadir}/texlive - # Strip executable bit from non-scripts - for txt in %{_texmfdistdir}/doc/generic/m-tx/mtx060/docversion + # Correct perl wrapper scripts if any + for scr in %{_texmfdistdir}/doc/generic/m-tx/mtx060/docversion do -\ttest -e %{buildroot}/$txt || continue -\tchmod 0644 %{buildroot}/$txt + test -e %{buildroot}/$scr || continue + ed %{buildroot}/${scr} <<-'EOF' + 1 + i + #! /bin/sh + . + w + q + EOF done ln -sf %{_texmfdistdir}/texconfig/zypper.py \ %{buildroot}/var/adm/update-scripts/texlive-macros2e-%{texlive_version}.%{texlive_noarch}.v0.4svn23236-%{release}-zypper