summaryrefslogtreecommitdiffstats
path: root/share/info
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1998-05-09 22:15:19 +0000
committerwosch <wosch@FreeBSD.org>1998-05-09 22:15:19 +0000
commit3ec3412568fde5e366e216011202c3edcdcf4952 (patch)
tree860d1df4cd4f5bea1495412e0bc8c42538f8e0da /share/info
parenta654d73c6bafb061f123f1b38821ab3d107c07d3 (diff)
downloadFreeBSD-src-3ec3412568fde5e366e216011202c3edcdcf4952.zip
FreeBSD-src-3ec3412568fde5e366e216011202c3edcdcf4952.tar.gz
Print a human-readable warning and die if $INFODIR do not exist.
PR: bin/6138 Reviewed by: bde
Diffstat (limited to 'share/info')
-rw-r--r--share/info/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/share/info/Makefile b/share/info/Makefile
index b8d9e73..d01b42a 100644
--- a/share/info/Makefile
+++ b/share/info/Makefile
@@ -1,11 +1,21 @@
# @(#)Makefile 8.1 (Berkeley) 6/5/93
-# $Id$
+# $Id: Makefile,v 1.5 1998/01/03 14:06:26 wosch Exp $
NOOBJ= noobj
all clean cleandir depend lint tags:
beforeinstall:
+.if !exists(${DESTDIR}${INFODIR})
+ @echo "Warning: the directory ${DESTDIR}${INFODIR} does not exist!"
+ @echo "Perhaps the variable INFODIR is set incorrectly"
+ @echo "or your mtree database files are broken."
+ @echo ""
+ @echo "As a workaround you can create the directory by hand, e.g.:"
+ @echo -n "install -d -o ${INFOOWN} -g ${INFOGRP} "
+ @echo "-m 0755 ${DESTDIR}${INFODIR}"
+ @exit 3;
+.endif
${INSTALL} -c -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} dir-tmpl \
${DESTDIR}${INFODIR}/dir-tmpl
.if !exists(${DESTDIR}${INFODIR}/dir)
OpenPOWER on IntegriCloud