diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-02-09 03:59:16 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-02-09 03:59:16 +0000 |
commit | c95a95dae60b9d76c1e54d2a4500d800719b79b9 (patch) | |
tree | e20632b7aaead1e91ad1afd1e15c402274fa3434 /sys/arch/alpha | |
parent | a03d74c28ae88ea0249c512b98cf80f0df457d3e (diff) |
Check for the existence of /bsd before trying to back it up to /obsd.
Fixes 'make install' when /bsd is not present for some reason.
ok rob florian, "fine with me" deraadt
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/conf/Makefile.alpha | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha index 3e6e97feb01..d3981b65b2c 100644 --- a/sys/arch/alpha/conf/Makefile.alpha +++ b/sys/arch/alpha/conf/Makefile.alpha @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.alpha,v 1.110 2017/11/04 16:04:15 florian Exp $ +# $OpenBSD: Makefile.alpha,v 1.111 2018/02/09 03:59:15 tb Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -140,7 +140,7 @@ locore0.o: ${_machdir}/${_mach}/locore0.S assym.h locore.o: ${_machdir}/${_mach}/locore.s assym.h hardlink-obsd: - cmp -s bsd /bsd || ln -f /bsd /obsd + [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd newinstall: umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \ |