os/debian/config
author matthijs
Wed, 22 Mar 2006 22:38:29 +0000
branch0.4
changeset 9959 984493ab6fff
permissions -rwxr-xr-x
(svn r4044) Rename 0.4.5 branch to 0.4. Further minor releases will be in the 0.4 range, to prevent enormously long version numbers.
#!/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;