Files @ r10069:a7c8d461c706
Branch filter:

Location: cpp/openttd-patchpack/source/os/debian/config

matthijs
(svn r14237) -Feature [Debian]: Allow the Debian packaging to change the package name of the resulting package.
- The name can be changed at build time, by changing the package name in debian/changelog.
- This will allow packages like openttd-svn or openttd-cargodest packages to be built.
#!/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;