]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Always use `install -d' to make sure destination directory exists & has
authorjtc <jtc@NetBSD.org>
Thu, 30 Sep 1993 23:57:08 +0000 (23:57 +0000)
committerjtc <jtc@NetBSD.org>
Thu, 30 Sep 1993 23:57:08 +0000 (23:57 +0000)
correct ownership and permissions.

fortune/datfiles/Makefile

index d70c51153b3b5eae64dad3dbcd8759b336fbc654..0552ca39319cae78189b94055d5c83bbb9cfdb80 100644 (file)
@@ -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 \