r8822 - trunk/BOOK/pst/typesetting

randy at linuxfromscratch.org randy at linuxfromscratch.org
Tue Jan 18 08:10:40 PST 2011


Author: randy
Date: 2011-01-18 09:10:31 -0700 (Tue, 18 Jan 2011)
New Revision: 8822

Modified:
   trunk/BOOK/pst/typesetting/texlive.xml
Log:
Modified the TeX Live instructions so that the symlinks installed in /usr/bin are recreated properly

Modified: trunk/BOOK/pst/typesetting/texlive.xml
===================================================================
--- trunk/BOOK/pst/typesetting/texlive.xml	2011-01-18 02:13:42 UTC (rev 8821)
+++ trunk/BOOK/pst/typesetting/texlive.xml	2011-01-18 16:10:31 UTC (rev 8822)
@@ -159,9 +159,12 @@
 ln  -s  -v           ../../texmf-dist/doc \
                      /usr/share/doc/texlive-&texlive-version;/texmf-dist &&
 
-for FN in `ls -l /usr/bin | grep "\.\./texmf"`
-do ln -svf `readlink $FN | sed 's|\.\./texmf|../share/texmf|'` $FN             
-done</userinput></screen>
+for FN in `find /usr/bin -type l`; do
+    if [ `readlink $FN | grep "\.\./texmf"` ]; then
+        ln -svf `readlink $FN | sed 's|\.\./texmf|../share/texmf|'` $FN
+    fi
+done &&
+unset FN</userinput></screen>
 
   </sect2>
 




More information about the blfs-book mailing list