os/debian/config
author rubidium
Sat, 26 Apr 2008 20:54:56 +0000
branch0.6
changeset 10366 960aae8c20e2
parent 3299 dc38a2c6a361
permissions -rwxr-xr-x
(svn r12907) [0.6] -Backport from trunk r12906:
- Fix: Vehicle groups, engine replacement rules and player/company names were not properly reset/freed after bankrupt (r12906)
[0.6] -Prepare: for 0.6.1-RC1.
#!/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;