os/debian/config
author rubidium
Wed, 30 May 2007 18:24:54 +0000
changeset 6755 7cca96e92189
parent 3299 6fbecb7ca6a7
child 10070 8970f1074f21
permissions -rwxr-xr-x
(svn r9990) -Fix: MorphOS and AmigaOS do not like "//" in filenames as that means the same as "/../" in means in Unix.
#!/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;