8c2a3a470d
- 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
11 lines
213 B
Bash
11 lines
213 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
for f in %%CONFIG_FILES%%; do
|
|
if [ ! -f %%DATADIR%%/$f ]; then
|
|
touch %%DATADIR%%/$f
|
|
chown root:wheel %%DATADIR%%/$f
|
|
chmod 666 %%DATADIR%%/$f
|
|
fi
|
|
done
|
|
fi
|