(svn r4033) - Codechange: [Debian] Update debian packaging files to use debconf for user interaction.

This commit is contained in:
matthijs
2006-03-22 21:08:05 +00:00
parent bcf0d9ff06
commit 44aa29a005
3 changed files with 28 additions and 1 deletions

21
os/debian/config Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
# Source debconf library.
. /usr/share/debconf/confmodule
FILES="trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf sample.cat"
DATADIR=/usr/share/games/openttd/data
MISSING="No";
for FILE in $FILES; do
# Check if all the files needed are here.
if [ ! -e $DATADIR/$FILE ]; then
MISSING="Yes";
break;
fi;
done;
if [ $MISSING = "Yes" ]; then
db_input high openttd/datafiles || true
db_go
fi;