Perhaps this should be a PR...
Seeing as how we are recently being amused by fortune(6) quotes, I thought
I'd mention an acronymn that hasn't been used recently: POLA
Can anyone explain why every time I upgrade world, my hard earned 'record'
file whilst playing hack(6) gets overwritten by /dev/null, and also all
the user 'bones' and 'save' files rm'd?
If the interface to these files changes, surely the game should recognise
it?
I propose the following patch to src/games/hack:
$ diff -u Makefile.orig Makefile
--- Makefile.orig Wed Aug 11 04:16:06 1999
+++ Makefile Wed Aug 11 04:16:20 1999
@@ -31,14 +31,14 @@
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/*
.include <bsd.prog.mk>
--
:{ [EMAIL PROTECTED]
Andy Farkas
System Administrator
Speednet Communications
http://www.speednet.com.au/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message