#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 stoat):
Okay. Written this way, the for loop creates the six LibreOffice startup
scripts for me...
{{{
for program in base calc draw impress math writer
do
echo '#!/bin/bash' > /usr/bin/${program}
echo "exec /usr/lib/libreoffice/program/soffice --nologo --${program}
\"\${@}\"" >> /usr/bin/${program}
chmod 755 /usr/bin/${program}
done
}}}
The difference from the current book's version is it echoes in the bash
shebang using single quotes in a separate step, and then appends the exec
line as a second step with double quotes. I don't know how pretty this is,
but it worked and was better than manually creating the six scripts.
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/3374#comment:1>
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