[lfs] branch trunk updated: Use "install ... -t $dir" instead of "mkdir $dir; cp ... $dir" if possible
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <173373969788.16267.16228712081057563951@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository lfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 6fa6a4f3c Use "install ... -t $dir" instead of "mkdir $dir; cp ... $dir" if possible
6fa6a4f3c is described below
commit 6fa6a4f3ce9c054e9b33d151edc9cc4ee2785b24
Author: Xi Ruoyao <[email protected]>
AuthorDate: Mon Dec 9 18:15:08 2024 +0800
Use "install ... -t $dir" instead of "mkdir $dir; cp ... $dir" if possible
So we don't need to type the long path twice.
---
chapter08/gawk.xml | 3 +--
chapter08/iproute2.xml | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/chapter08/gawk.xml b/chapter08/gawk.xml
index bc19acaaf..bc3717653 100644
--- a/chapter08/gawk.xml
+++ b/chapter08/gawk.xml
@@ -84,8 +84,7 @@ make install</userinput></screen>
<para>If desired, install the documentation:</para>
-<screen><userinput remap="install">mkdir -pv /usr/share/doc/gawk-&gawk-version;
-cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-&gawk-version;</userinput></screen>
+<screen><userinput remap="install">install -vDm644 doc/{awkforai.txt,*.{eps,pdf,jpg}} -t /usr/share/doc/gawk-&gawk-version;</userinput></screen>
</sect2>
diff --git a/chapter08/iproute2.xml b/chapter08/iproute2.xml
index 50fec36aa..bcf08858b 100644
--- a/chapter08/iproute2.xml
+++ b/chapter08/iproute2.xml
@@ -77,8 +77,7 @@ rm -fv man/man8/arpd.8</userinput></screen>
<para>If desired, install the documentation:</para>
-<screen><userinput remap="install">mkdir -pv /usr/share/doc/iproute2-&iproute2-version;
-cp -v COPYING README* /usr/share/doc/iproute2-&iproute2-version;</userinput></screen>
+<screen><userinput remap="install">install -vDm644 COPYING README* -t /usr/share/doc/iproute2-&iproute2-version;</userinput></screen>
</sect2>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page