r3158 - in trunk/BOOK: introduction/welcome x/installing xsoft/suites

Anderson Lizardo lizardo at linuxfromscratch.org
Wed Dec 29 18:03:40 PST 2004


On Wednesday 29 December 2004 04:03, dj at linuxfromscratch.org wrote:
> -<screen><userinput><command>for D in
> /opt/openoffice/share/gnome/net/ooo645*
> +<screen><userinput><command>install -d /usr/share/applications -m 755
> & & +for D in /opt/openoffice/share/gnome/net/ooo645*
>    do cp $D /usr/share/applications/`basname $D | sed 's/645//'`
>    done</command></userinput></screen>

I think there's a typo here. it should be "basename" instead of "basname".

Anyway, maybe the following commands can substitute the "for" block above, for 
simplicity:

cp /opt/openoffice/share/gnome/net/ooo645*.destktop /usr/share/applications/
rename ooo645 ooo /usr/share/applications/ooo645*.desktop

Note: I think It's also a good idea to use the "ooo645*.desktop" pattern 
instead of just ooo645* so It's made clear that we are copying just .desktop 
files.

Another suggestion: I think the following snippet:

cd solver/645/unxlngi4.pro/pck &&
for i in ../../../../../helpcontent_*_unix.tgz
  do tar -xvzf $i
  done &&
cd ../../../../instsetoo &&
rm -rf unxlngi4.pro &&
cd .. &&
bash -c "source LinuxIntelEnv.Set.sh ; dmake"

Can be simplified to:

for i in ../helpcontent_*_unix.tgz
  do tar -C solver/645/unxlngi4.pro/pck -xvzf $i
  done &&
rm -rf instsetoo/unxlngi4.pro &&
bash -c "source LinuxIntelEnv.Set.sh ; dmake"

Much more clean, IMHO :).

-- 
Anderson Lizardo
lizardo at linuxfromscratch.org
http://www.linuxfromscratch.org/



More information about the blfs-book mailing list