Use "install ... -t $dir" instead of "mkdir $dir; cp ... $dir" if possible

So we don't need to type the long path twice.
This commit is contained in:
Xi Ruoyao 2024-12-09 18:15:08 +08:00
parent cefff0ec14
commit 6fa6a4f3ce
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 2 additions and 4 deletions

View File

@ -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>

View File

@ -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>