summaryrefslogtreecommitdiffstats
path: root/games/hack
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-12-10 21:13:42 +0000
committerbillf <billf@FreeBSD.org>1999-12-10 21:13:42 +0000
commiteeb2dbc8d87fc13f9b937f94fcc499f662567fee (patch)
tree335c4440861d51b2cd7adf6cd38eed83554f6262 /games/hack
parentda5ff8ce2a3b17bc02c075958b89e0fbb8f5b16b (diff)
downloadFreeBSD-src-eeb2dbc8d87fc13f9b937f94fcc499f662567fee.zip
FreeBSD-src-eeb2dbc8d87fc13f9b937f94fcc499f662567fee.tar.gz
1. Don't overwrite scorefiles if they already exist.
PR: bin/13068 Submitted by: Dominic Mitchell <Dom.Mitchell@palmerharvey.co.uk> 2. Sprinkle $FreeBSD$ around.
Diffstat (limited to 'games/hack')
-rw-r--r--games/hack/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/games/hack/Makefile b/games/hack/Makefile
index 9875900..e2ad5d3 100644
--- a/games/hack/Makefile
+++ b/games/hack/Makefile
@@ -1,4 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
+# $FreeBSD$
PROG= hack
SRCS= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
@@ -31,14 +32,16 @@ makedefs: makedefs.o
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \
${DESTDIR}/var/games/hackdir/perm
+.if !exists(${DESTDIR}/var/games/hackdir/record)
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \
${DESTDIR}/var/games/hackdir/record
+.endif
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \
${DESTDIR}/var/games/hackdir/rumors
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \
${DESTDIR}/var/games/hackdir
- rm -f ${DESTDIR}/var/games/hackdir/bones* \
- ${DESTDIR}/var/games/hackdir/save/*
+# rm -f ${DESTDIR}/var/games/hackdir/bones* \
+# ${DESTDIR}/var/games/hackdir/save/*
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud