Changeset 2ec4b60


Ignore:
Timestamp:
06/07/2004 07:16:21 PM (20 years ago)
Author:
Zack Winkles <winkie@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
be8296f6
Parents:
9109cd4
Message:

Normalized usage of sed throughout the book

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3762 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r9109cd4 r2ec4b60  
    105105</listitem>
    106106
     107<listitem><para>June 7, 2004 [winkie]: Normalized <quote>sed</quote> usage
     108throughout the book.</para></listitem>
     109
    107110<listitem><para>June 7, 2004 [winkie]: Use the
    108111<quote>gcc --print-file specs</quote> command to determine the location of the
  • chapter05/adjusting.xml

    r9109cd4 r2ec4b60  
    4141
    4242<screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
    43 sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
     43sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
    4444    $SPECFILE &gt; tempspecfile &amp;&amp;
    4545mv -f tempspecfile $SPECFILE &amp;&amp;
  • chapter05/udev.xml

    r9109cd4 r2ec4b60  
    4343running the following:</para>
    4444
    45 <screen><userinput>sed -i 's:\/sbin\/udev:/tools&amp;:' udevstart.c</userinput></screen>
     45<screen><userinput>sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c</userinput></screen>
    4646
    4747<para>Also assure that udev knows the correct location to look for its
    4848configuration files:</para>
    4949
    50 <screen><userinput>sed -i 's:\/etc:/tools&amp;:' etc/udev/udev.conf.in</userinput></screen>
     50<screen><userinput>sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in</userinput></screen>
    5151
    5252<para>Now compile Udev:</para>
  • chapter05/util-linux.xml

    r9109cd4 r2ec4b60  
    3737script:</para>
    3838
    39 <screen><userinput>sed -i "s@/usr/include@/tools/include@g" configure</userinput></screen>
     39<screen><userinput>sed -i 's@/usr/include@/tools/include@g' configure</userinput></screen>
    4040
    4141<para>Prepare Util-linux for compilation:</para>
  • chapter06/gzip.xml

    r9109cd4 r2ec4b60  
    3939location gets placed into the script:</para>
    4040
    41 <screen><userinput>sed -i 's%"BINDIR"%/bin%' gzexe.in</userinput></screen>
     41<screen><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
    4242
    4343<para>Compile the package:</para>
  • chapter06/man.xml

    r9109cd4 r2ec4b60  
    4141properly handled by Less:</para>
    4242
    43 <screen><userinput>sed -i 's/-is/&amp;R/' configure</userinput></screen>
     43<screen><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
    4444
    4545<para>The third is also a sed substitution to comment out the <quote>MANPATH
     
    4747redundant results when using programs such as <command>whatis</command>:</para>
    4848
    49 <screen><userinput>sed -i 's%MANPATH./usr/man%#&amp;%' src/man.conf.in</userinput></screen>
     49<screen><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
    5050 
    5151<para>Now prepare Man for compilation:</para>
  • chapter06/readjusting.xml

    r9109cd4 r2ec4b60  
    5353<!-- Ampersands are needed to allow cut and paste -->
    5454
    55 <screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
    56 sed -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \
    57     $SPECFILE &gt; newspecfile &amp;&amp;
    58 mv -f newspecfile $SPECFILE &amp;&amp;
    59 unset SPECFILE</userinput></screen>
     55<screen><userinput>sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \
     56    `gcc --print-file specs`</userinput></screen>
    6057
    6158<para>Again, cutting and pasting the above is recommended. And just like
  • chapter06/shadow.xml

    r9109cd4 r2ec4b60  
    6767and type it all in):</para>
    6868
    69 <screen><userinput>sed -e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \
    70     -e 's%/var/spool/mail%/var/mail%' \
    71     etc/login.defs.linux &gt; /etc/login.defs</userinput></screen>
     69<screen><userinput>cp etc/login.defs.linux /etc/login.defs
     70sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
     71    -e 's@/var/spool/mail@/var/mail@' /etc/login.defs</userinput></screen>
    7272
    7373<para>Move some misplaced symlinks/programs to their proper locations:</para>
  • chapter06/sysvinit.xml

    r9109cd4 r2ec4b60  
    3737<quote>Sending processes started by init the TERM signal</quote> instead:</para>
    3838
    39 <screen><userinput>cp src/init.c{,.backup}
    40 sed 's/Sending processes/&amp; started by init/g' \
    41     src/init.c.backup &gt; src/init.c</userinput></screen>
     39<screen><userinput>sed -i 's@Sending processes@&amp; started by init@g' \
     40    src/init.c</userinput></screen>
    4241
    4342<para>Compile Sysvinit:</para>
  • chapter06/util-linux.xml

    r9109cd4 r2ec4b60  
    3636program FHS-compliant, run the following:</para>
    3737
    38 <screen><userinput>cp hwclock/hwclock.c{,.backup}
    39 sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
    40     hwclock/hwclock.c.backup &gt; hwclock/hwclock.c
     38<screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c
    4139mkdir -p /var/lib/hwclock</userinput></screen>
    4240
Note: See TracChangeset for help on using the changeset viewer.