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

Rémy Oudompheng remy at archlinux.org
Sun Apr 5 23:37:33 UTC 2015


    Date: Monday, April 6, 2015 @ 01:37:33
  Author: remy
Revision: 235483

Add symlinks for new package crossrefware.

Modified:
  texlive-bibtexextra/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-04-05 23:25:10 UTC (rev 235482)
+++ PKGBUILD	2015-04-05 23:37:33 UTC (rev 235483)
@@ -41,9 +41,22 @@
    if [[ -d $pkgdir/usr/share/texmf-dist/scripts ]]; then
      find $pkgdir/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
    fi
-   install -m755 -d $pkgdir/usr/bin
-   ln -s /usr/share/texmf-dist/scripts/bibexport/bibexport.sh $pkgdir/usr/bin/bibexport
-   ln -s /usr/share/texmf-dist/scripts/listbib/listbib $pkgdir/usr/bin/listbib
-   ln -s /usr/share/texmf-dist/scripts/multibibliography/multibibliography.pl $pkgdir/usr/bin/multibibliography
-   ln -s /usr/share/texmf-dist/scripts/urlbst/urlbst $pkgdir/usr/bin/urlbst
+
+   # link programs from /usr/share/texmf-dist/scripts
+   _linked_scripts="
+bibexport/bibexport.sh
+crossrefware/bibdoiadd.pl
+crossrefware/bibzbladd.pl
+crossrefware/ltx2crossrefxml.pl
+listbib/listbib
+multibibliography/multibibliography.pl
+urlbst/urlbst
+"
+    install -m755 -d $pkgdir/usr/bin
+    for _script in ${_linked_scripts}; do
+        _scriptbase=$(basename $_script)
+        _scriptbase=${_scriptbase%.*}
+        [[ -f ${pkgdir}/usr/share/texmf-dist/scripts/${_script} ]] &&
+            ln -s /usr/share/texmf-dist/scripts/${_script} ${pkgdir}/usr/bin/${_scriptbase}
+    done
 }



More information about the arch-commits mailing list