Date: Sun, 22 Sep 2019 08:56:50 +0000 (UTC) From: Greg Lewis <glewis@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512564 - head/games/nethack34 Message-ID: <201909220856.x8M8uolW077002@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glewis Date: Sun Sep 22 08:56:50 2019 New Revision: 512564 URL: https://svnweb.freebsd.org/changeset/ports/512564 Log: Preserve scores during updates * Treat record and logfile as "samples" so that they will be kept when updating if they have anything in them. Modified: head/games/nethack34/Makefile head/games/nethack34/pkg-plist Modified: head/games/nethack34/Makefile ============================================================================== --- head/games/nethack34/Makefile Sun Sep 22 08:52:06 2019 (r512563) +++ head/games/nethack34/Makefile Sun Sep 22 08:56:50 2019 (r512564) @@ -128,6 +128,10 @@ post-install: .endif @cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} manpages @${MKDIR} ${STAGEDIR}${DATADIR}/save + # Make "sample" files from records to prevent them being removed + # if they have been altered + @${CP} ${STAGEDIR}/${DATADIR}/logfile ${STAGEDIR}/${DATADIR}/logfile.sample + @${CP} ${STAGEDIR}/${DATADIR}/record ${STAGEDIR}/${DATADIR}/record.sample .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${STAGEDIR}${DOCSDIR} Modified: head/games/nethack34/pkg-plist ============================================================================== --- head/games/nethack34/pkg-plist Sun Sep 22 08:52:06 2019 (r512563) +++ head/games/nethack34/pkg-plist Sun Sep 22 08:56:50 2019 (r512564) @@ -94,9 +94,7 @@ bin/%%HACKNAME%% %%DATADIR%%/juiblex.lev %%DATADIR%%/knox.lev %%DATADIR%%/license -@mode 664 -%%DATADIR%%/logfile -@mode +@sample(games,games,664) %%DATADIR%%/logfile.sample %%DATADIR%%/mapbg.xpm %%DATADIR%%/medusa-1.lev %%DATADIR%%/medusa-2.lev @@ -119,9 +117,7 @@ bin/%%HACKNAME%% %%DATADIR%%/perm %%DATADIR%%/pet_mark.xbm %%DATADIR%%/quest.dat -@mode 664 -%%DATADIR%%/record -@mode +@sample(games,games,664) %%DATADIR%%/record.sample @mode 02755 %%DATADIR%%/recover @mode
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909220856.x8M8uolW077002>