diff options
author | Ed Maste <emaste@FreeBSD.org> | 2007-10-15 13:50:46 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2007-10-15 13:50:46 +0000 |
commit | 1602894ecfdf7e57fa45cdc2df6e3313a1177db6 (patch) | |
tree | 7cf28fb8c91b1bed01f448b451ed57ce49c6bb29 /Makefile.inc1 | |
parent | 4932c895e7f582bdac09f4398257106f3c8861af (diff) | |
download | src-1602894ecfdf7e57fa45cdc2df6e3313a1177db6.tar.gz src-1602894ecfdf7e57fa45cdc2df6e3313a1177db6.zip |
If a required install tool is missing, provide a more friendly error
message (instead of cp's usage info).
Notes
Notes:
svn path=/head/; revision=172663
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index ff8c92483342..e64fd4b47387 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -578,7 +578,12 @@ distributeworld installworld: installcheck date echo egrep find grep install-info \ ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl \ test true uname wc zic; do \ - cp `which $$prog` ${INSTALLTMP}; \ + if progpath=`which $$prog`; then \ + cp $$progpath ${INSTALLTMP}; \ + else \ + echo "Required install tool $$prog not found" >&2; \ + exit 1; \ + fi; \ done ${_+_}cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//} rm -rf ${INSTALLTMP} |