cygport: broken symlinks for texlive scripts

Ken Brown kbrown@cornell.edu
Fri Apr 27 11:05:00 GMT 2012


texlive_install creates many symlinks like this:

   /usr/bin/htlatex -> ../share/texmf-dist/scripts/tex4ht/htlatex.sh

This won't work if the script is invoked as /bin/htlatex (which will 
happen if /bin precedes /usr/bin in $PATH).  Patch attached.

Ken
-------------- next part --------------
--- texlive.cygclass~	2012-04-07 18:50:22.001000000 -0400
+++ texlive.cygclass	2012-04-27 06:40:44.805157200 -0400
@@ -140,7 +140,7 @@
 					dst=$(readlink $f)
 					dodir /usr/bin
 					case ${dst} in
-					\.\./*) dosym ../share/${dst#../../} /usr/bin/${f##*/} ;;
+					\.\./*) dosym /usr/share/${dst#../../} /usr/bin/${f##*/} ;;
 					*) dosym ${dst} /usr/bin/${f##*/} ;;
 					esac
 				fi


More information about the Cygwin-apps mailing list