#3374: LibreOffice for loop fails to create launcher scripts
--------------------+-------------------------------------------------------
 Reporter:  stoat   |       Owner:  blfs-book@…                   
     Type:  task    |      Status:  new                           
 Priority:  normal  |   Milestone:  current                       
Component:  BOOK    |     Version:  SVN                           
 Severity:  normal  |    Keywords:                                
--------------------+-------------------------------------------------------

Comment(by bdubbs@…):

 Try this:

 {{{
 SOFFICE=/usr/lib/libreoffice/program/soffice  &&
 for p in base calc draw impress math writer
 do
   echo '#!/bin/bash' > /usr/bin/${p}
   echo "exec $SOFFICE --nologo --${p} \"\${@}\"" >> /usr/bin/${p}
 done &&
 unset SOFFICE
 }}}

 The SOFFICE variable is just to shorten things up and make clear.

 It's basically what is in comment 1, but with some clarification.  I
 suspect the reason this problem came up was because it was checked from a
 script but not from cut/paste.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/3374#comment:6>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to