Preserve scores during updates

* Treat record and logfile as "samples" so that they will be kept when
  updating if they have anything in them.
This commit is contained in:
Greg Lewis 2019-09-22 08:56:50 +00:00
parent 8b93af8898
commit ceaf4e631c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=512564
2 changed files with 6 additions and 6 deletions

View File

@ -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}

View File

@ -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