1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/games/dsnake/files/pkg-deinstall.in
Pav Lucistnik 8c2a3a470d - Also create scores and configuration when installing from a package
- Preserve modified scores and configuration across updates
- Install using ${INSTALL_xxx}, to ensure proper permissions and ownerships
- Pass command-line arguments through the wrapper script
- Replace the shell process with the game, to save some memory while playing
- Install documentation in ${DOCSDIR}, and respect ${NOPORTDOCS}

PR:		ports/84738
Submitted by:	jylefort

- Allow on amd64
2005-08-29 13:36:14 +00:00

10 lines
147 B
Bash

#!/bin/sh
if [ "$2" = "DEINSTALL" ]; then
for f in %%CONFIG_FILES%%; do
if [ ! -s %%DATADIR%%/$f ]; then
rm -f %%DATADIR%%/$f
fi
done
fi