summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>1998-12-01 04:33:28 +0000
committerOleg Safiullin <form@cvs.openbsd.org>1998-12-01 04:33:28 +0000
commitc3273e93c09ce16254a488297ecbfd59392e432e (patch)
treed1389305e8e73252ffd4be2cf45d81858f24c636
parentf0665e2709cf75e9ead515f6eab21a66e501de53 (diff)
chdir to ${DESTDIR}/ to create sys -> usr/src/sys link.
This avoids creating of incorrect symlink ${HOME}/sys -> usr/src/sys when DESTDIR="".
-rw-r--r--etc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 6c9fe26a518..8a48102aa8c 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.93 1998/10/30 18:44:47 millert Exp $
+# $OpenBSD: Makefile,v 1.94 1998/12/01 04:33:27 form Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific
@@ -211,7 +211,7 @@ distrib-dirs:
if [ ! -d ${DESTDIR}/usr/src ]; then \
${INSTALL} -d -o root -g wsrc -m 775 ${DESTDIR}/usr/src; \
fi
- cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
+ cd ${DESTDIR}/; rm -f sys; ln -s usr/src/sys sys
.ifndef RELEASEDIR
release: