mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-12-27 03:33:50 -05:00
loongarch: gcc-pass1: Adapt the new note about -i.orig
This commit is contained in:
@@ -72,11 +72,15 @@ mv -v mpc-&mpc-version; mpc</userinput></screen>
|
||||
<para>
|
||||
This example demonstrates the use of the
|
||||
<parameter>-i.orig</parameter> switch. It makes the
|
||||
<command>sed</command> copy the <filename>t-linux64</filename> file
|
||||
to <filename>t-linux64.orig</filename>, and then edit the original
|
||||
<filename>t-linux64</filename> file inplace. So you may run
|
||||
<command>diff -u gcc/config/i386/t-linux64{.orig,}</command>
|
||||
to visualize the change done by the <command>sed</command> command
|
||||
<command>sed</command> copy the <filename>t-linux</filename> and
|
||||
<filename>linux.h</filename> files
|
||||
to <filename>t-linux.orig</filename> and
|
||||
<filename>linux.h.orig</filename>, and then edit the original
|
||||
<filename>t-linux64</filename> and <filename>linux.h</filename>
|
||||
files inplace. So you may run
|
||||
<command>diff -u gcc/config/loongarch/t-linux{.orig,}</command>
|
||||
to visualize the change to <filename>t-linux</filename> done by the
|
||||
<command>sed</command> command
|
||||
afterwards. We'll simply use <parameter>-i</parameter> (which just
|
||||
edits the original file inplace without copying it) for all other
|
||||
packages in the book, but you can change it to
|
||||
|
||||
Reference in New Issue
Block a user