changeset 3299 | dc38a2c6a361 |
3298:f85d87c72d36 | 3299:dc38a2c6a361 |
---|---|
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; |