[arch-commits] Commit in texlive-bin/trunk (PKGBUILD)

Rémy Oudompheng remy at archlinux.org
Sat Apr 23 10:06:09 UTC 2011


    Date: Saturday, April 23, 2011 @ 06:06:08
  Author: remy
Revision: 120388

Group removed dangling symlinks by package where they are found

Modified:
  texlive-bin/trunk/PKGBUILD

----------+
 PKGBUILD |   46 +++++++++++++++++++++-------------------------
 1 file changed, 21 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-04-23 09:49:29 UTC (rev 120387)
+++ PKGBUILD	2011-04-23 10:06:08 UTC (rev 120388)
@@ -247,38 +247,34 @@
    echo "--> Create symlinks for TeX formats ..."
    PATH="$PATH:${pkgdir}/usr/bin" texlinks -f $pkgdir/usr/share/texmf/web2c/fmtutil.cnf $pkgdir/usr/bin/
    #############################################################
-   # remove symlinks to scripts that are not in texlive-bin or texlive-core:
-   SYMLINKS_TO_REMOVE="authorindex \
-ebong \
-bibexport \
-cachepic \
-epspdf \
-epspdftk \
-fig4latex \
+   # remove dangling symlinks
+   _bibtexextra_scripts="bibexport"
+   _htmlxml_scripts="ht htcontext htlatex htmex httex httexi htxelatex htxetex mk4ht"
+   _langextra_scripts="ebong"
+   _langgreek_scripts="mkgrkindex"
+   _latexextra_scripts="authorindex \
 makeglossaries \
-mathspic \
-mkgrkindex \
 pdfannotextractor \
-perltex \
 pdfthumb \
+perltex \
 ppower4 \
-pst2pdf \
 ps4pdf \
 splitindex \
 svn-multi \
-htcontext \
-htlatex \
-htmex \
-ht \
-httexi \
-httex \
-htxelatex \
-htxetex \
-mk4ht \
-ulqda \
-vpe \
-tlmgr"
-   for s in $SYMLINKS_TO_REMOVE; do
+vpe"
+   _pictures_scripts="cachepic epspdf epspdftk fig4latex mathspic"
+   _pstricks_scripts="pst2pdf"
+   _science_scripts="ulqda"
+   for s in \
+        ${_bibtexextra_scripts} \
+        ${_htmlxml_scripts}    \
+        ${_langextra_scripts}  \
+        ${_langgreek_scripts}  \
+        ${_latexextra_scripts} \
+        ${_pictures_scripts}   \
+        ${_pstricks_scripts}   \
+        ${_science_scripts}    \
+        tlmgr; do
      rm -f $pkgdir/usr/bin/$s
    done
    ###################################################################




More information about the arch-commits mailing list