# This cleans up the system-wide high scores file.
#
# We want to avoid overwriting previously-saved high scores when the package is
# upgraded or reinstalled.  So, the postinst creates the file only if it does
# not already exist, and ignores it otherwise.  This postrm script then removes
# the file when the package is purged, via dh-cruft.
#
# Policy 11.11 says "Games which require protected, privileged access to
# high-score files..." may "...use files and directories with appropriate
# permissions (770 root:games, for example)".  The FHS spec says "Any
# modifiable files, such as score files, game play logs, and so forth, should
# be placed in /var/games."
#
# See also:
#   - https://bugs.debian.org/1131722
#   - https://bugs.debian.org/1135786
#   - https://salsa.debian.org/debian/sopwith/-/merge_requests/4

/var/games/sopwith
/var/games/sopwith/hiscores.txt
