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:
parent
8b93af8898
commit
ceaf4e631c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=512564
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user