Subject: CVS commit: src/share/mk
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 07/20/2003 14:49:45
Module Name: src
Committed By: lukem
Date: Sun Jul 20 14:49:44 UTC 2003
Modified Files:
src/share/mk: bsd.links.mk
Log Message:
LINKS: use stat -qf '%d %i' $l to read the device & inode # of the source
and target (and rely upon a non-zero exit value to indicate a missing file),
instead instead of unconditionally installing the link.
SYMLINKS: use stat -qf '%Y' $l to read a symlink's target (and rely upon
a non-zero exit value to indicate a missing file or non-symlink),
instead of test -h $l && ls -ld $l | awk '{print $NF}' , since
the former is quicker and more concise.
This resolves PR toolchain/16885 from David Laight.
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/share/mk/bsd.links.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.