summaryrefslogtreecommitdiffstats
path: root/games/larn
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/larn
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/larn')
-rw-r--r--games/larn/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/larn/Makefile b/games/larn/Makefile
index b31c431..43b0468 100644
--- a/games/larn/Makefile
+++ b/games/larn/Makefile
@@ -1,4 +1,5 @@
# @(#)Makefile 5.12 (Berkeley) 5/30/93
+# $FreeBSD$
# EXTRA
# Incorporates code to gather additional performance statistics
@@ -65,9 +66,13 @@ beforeinstall:
(cd ${.CURDIR}/datfiles; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
-m ${NOBINMODE} larnmaze larnopts larn.help \
${DESTDIR}${SHAREDIR}/games/larn)
+.if !exists(${DESTDIR}/var/games/larn/lscore12.0)
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \
${DESTDIR}/var/games/larn/lscore12.0
+.endif
+.if !exists(${DESTDIR}/var/games/larn/llog12.0)
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \
${DESTDIR}/var/games/larn/llog12.0
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud