diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2019-09-22 08:56:50 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2019-09-22 08:56:50 +0000 |
commit | ceaf4e631cd8733afe7968c07db2e722b4efb343 (patch) | |
tree | 20c1cbf3a818401bfefb0ba089d6f1e276edece8 /games | |
parent | 8b93af88984f510983044f7eea48e3fe0f68f6a5 (diff) | |
download | ports-ceaf4e631cd8733afe7968c07db2e722b4efb343.tar.gz ports-ceaf4e631cd8733afe7968c07db2e722b4efb343.zip |
Preserve scores during updates
* Treat record and logfile as "samples" so that they will be kept when
updating if they have anything in them.
Notes
Notes:
svn path=/head/; revision=512564
Diffstat (limited to 'games')
-rw-r--r-- | games/nethack34/Makefile | 4 | ||||
-rw-r--r-- | games/nethack34/pkg-plist | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/games/nethack34/Makefile b/games/nethack34/Makefile index cb244e43f5d4..6806148aab0f 100644 --- a/games/nethack34/Makefile +++ b/games/nethack34/Makefile @@ -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} diff --git a/games/nethack34/pkg-plist b/games/nethack34/pkg-plist index 89ba9ffddfb4..af51b8eca142 100644 --- a/games/nethack34/pkg-plist +++ b/games/nethack34/pkg-plist @@ -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 |