author | matthijs |
Wed, 22 Mar 2006 22:26:16 +0000 | |
branch | 0.4.5 |
changeset 9958 | bed516c67d61 |
parent 9953 | 613e3af556a2 |
permissions | -rwxr-xr-x |
9953 | 1 |
#!/bin/sh |
2 |
||
3 |
# Source debconf library. |
|
4 |
. /usr/share/debconf/confmodule |
|
5 |
||
6 |
FILES="trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf sample.cat" |
|
7 |
DATADIR=/usr/share/games/openttd/data |
|
8 |
||
9 |
MISSING="No"; |
|
10 |
for FILE in $FILES; do |
|
11 |
# Check if all the files needed are here. |
|
12 |
if [ ! -e $DATADIR/$FILE ]; then |
|
13 |
MISSING="Yes"; |
|
14 |
break; |
|
15 |
fi; |
|
16 |
done; |
|
17 |
||
18 |
if [ $MISSING = "Yes" ]; then |
|
19 |
db_input high openttd/datafiles || true |
|
20 |
db_go |
|
21 |
fi; |