summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1993-09-30 23:57:08 +0000
committerjtc <jtc@NetBSD.org>1993-09-30 23:57:08 +0000
commit63cd2b491532e5cde073130939a52068a1d361d2 (patch)
treea9d890a1814104a2808de58e41ae1adac3815549 /fortune
parent028f8eac412e30600924633f62e0ded209deff6e (diff)
downloadbsdgames-darwin-63cd2b491532e5cde073130939a52068a1d361d2.tar.gz
bsdgames-darwin-63cd2b491532e5cde073130939a52068a1d361d2.tar.zst
bsdgames-darwin-63cd2b491532e5cde073130939a52068a1d361d2.zip
Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
Diffstat (limited to 'fortune')
-rw-r--r--fortune/datfiles/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile
index d70c5115..0552ca39 100644
--- a/fortune/datfiles/Makefile
+++ b/fortune/datfiles/Makefile
@@ -1,5 +1,5 @@
# from: @(#)Makefile 5.2 (Berkeley) 5/6/91
-# $Id: Makefile,v 1.6 1993/08/01 05:45:27 mycroft Exp $
+# $Id: Makefile,v 1.7 1993/09/30 23:57:08 jtc Exp $
#
# set `OBSCENE' to "real" to have obscene fortunes installed,
@@ -17,14 +17,7 @@ CLEANFILES+=${DATFILES}
all: ${DATFILES}
install:
- @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
- /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
- mkdir -p ${DESTDIR}/usr/share/games/fortune ; \
- chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \
- chmod 755 ${DESTDIR}/usr/share/games/fortune ; \
- else \
- true ; \
- fi
+ @install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/games/fortune
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
${DESTDIR}/usr/share/games/fortune
(cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \