Ignore:
Timestamp:
08/08/2007 02:57:59 PM (17 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
9c84fd7
Parents:
70ce8cb
Message:

Simplified some commands using conditionals in various package instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7028 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/office/gnumeric.xml

    r70ce8cb radb02f98  
    114114
    115115<screen role='root'><userinput>make install &amp;&amp;
     116
    116117ln -v -s -f /usr/share/gnome/help/gnumeric \
    117             /usr/share/gnumeric/&gnumeric-version;/doc</userinput></screen>
    118 
    119     <para>If you have a <application>GNOME</application> installation in any
    120     prefix other than <filename class='directory'>/usr</filename>, issue
    121     the following commands as the <systemitem class="username">root</systemitem>
    122     user to move the <application>Gnumeric</application> Bonobo component
    123     description file into the <envar>$GNOME_PREFIX</envar> heirarchy and
    124     then remove the unneeded directories:</para>
    125 
    126 <screen role='root'><userinput>mv -v /usr/lib/bonobo/servers/GNOME_Gnumeric.server \
    127     $(pkg-config --variable=prefix ORBit-2.0)/lib/bonobo/servers &amp;&amp;
    128 rmdir -v /usr/lib/{bonobo/servers,bonobo}</userinput></screen>
     118            /usr/share/gnumeric/&gnumeric-version;/doc &amp;&amp;
     119
     120if [ $(pkg-config --variable=prefix ORBit-2.0) != "/usr" ]; then
     121    mv -v /usr/lib/bonobo/servers/GNOME_Gnumeric.server \
     122        $(pkg-config --variable=prefix ORBit-2.0)/lib/bonobo/servers &amp;&amp;
     123    rmdir -v /usr/lib/{bonobo/servers,bonobo}
     124fi</userinput></screen>
    129125
    130126    <para>If you have <xref linkend="gnome-doc-utils"/> installed you can
     
    182178    This rebuilds the <filename>Makefile</filename>s with the same prefix used
    183179    in the <application>GNOME Doc Utils</application> installation.</para>
     180
     181    <para><command>if [ ... != "/usr" ]; then ...; fi</command>:
     182    This command is used to move the <application>Gnumeric</application> Bonobo
     183    component description file into the <envar>$GNOME_PREFIX</envar> heirarchy
     184    and then remove the unneeded directories only if the
     185    <application>GNOME</application> installation is in any
     186    prefix other than <filename class='directory'>/usr</filename>.</para>
    184187
    185188  </sect2>
Note: See TracChangeset for help on using the changeset viewer.