freebsd-dev/usr.bin/xinstall
Eugene Grosbein 2d68fac9bd Optimize install(1) a bit.
Currently, "install -s -S" behaviour is inefficient for upgrade.
First it finds that destination file already exists and copies
source file to temporary file. Then it calls strip(1)
with name of temporary file as single agrument and our strip(1) creates
another temporary file in the /tmp (or TMPDIR) making another copy
that is finally copied to DESTDIR third time.

Meantime, strip(1) has an option "-o dst" to specify destination
so install(1) is allowed to skip initial copying from obj to DESTDIR.
This change makes it do so.

Take a look at https://reviews.freebsd.org/D25551 for details
and efficiency numbers (in short: upto 32% gained for installword).

MFC after:		1 month
Differential Revision:	https://reviews.freebsd.org/D25551
2020-07-10 00:24:42 +00:00
..
tests install(1): Fix relative path calculation with partial common dest/src 2019-01-31 05:20:11 +00:00
install.1 install.1: Add missing arguments to option descriptions 2019-08-12 10:57:56 +00:00
Makefile Allow boostrapping xinstall on Linux 2019-11-20 17:24:49 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
xinstall.c Optimize install(1) a bit. 2020-07-10 00:24:42 +00:00