summaryrefslogtreecommitdiffstats
path: root/quiz
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-04-09 09:38:47 +0000
committercgd <cgd@NetBSD.org>1993-04-09 09:38:47 +0000
commit1bead4f8301fb9d810573e99907bb3b9681a614e (patch)
tree4fdf2a3c1da29e8d87ae6836ec8df63f90d76db1 /quiz
parent954bc0383991770c17e4b6c19af111ca211b5d56 (diff)
downloadbsdgames-darwin-1bead4f8301fb9d810573e99907bb3b9681a614e.tar.gz
bsdgames-darwin-1bead4f8301fb9d810573e99907bb3b9681a614e.tar.zst
bsdgames-darwin-1bead4f8301fb9d810573e99907bb3b9681a614e.zip
make sure directory to install stuff exists before installing
Diffstat (limited to 'quiz')
-rw-r--r--quiz/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/quiz/Makefile b/quiz/Makefile
index 9244a6d2..bd0642f1 100644
--- a/quiz/Makefile
+++ b/quiz/Makefile
@@ -10,6 +10,14 @@ CATS= africa america areas arith asia babies bard chinese collectives \
HIDEGAME=hidegame
beforeinstall:
+ @if [ ! -d ${DESTDIR}/usr/share/games/quiz.db ]; then \
+ /bin/rm -f ${DESTDIR}/usr/share/games/quiz.db ; \
+ mkdir -p ${DESTDIR}/usr/share/games/quiz.db ; \
+ chown root.wheel ${DESTDIR}/usr/share/games/quiz.db ; \
+ chmod 755 ${DESTDIR}/usr/share/games/quiz.db ; \
+ else \
+ true ; \
+ fi
(cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${CATS} ${DESTDIR}/usr/share/games/quiz.db)