diff options
author | matthijs <matthijs@openttd.org> | 2006-03-22 21:08:05 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2006-03-22 21:08:05 +0000 |
commit | 2eafeaf7d6faf1c6116539b5ad7002c0ff448876 (patch) | |
tree | da000844353d74ba60ae2bf5d4ce76b075bfe07d /os/debian/config | |
parent | cc6d563eb61ea0f707b776261cccf0b190435b07 (diff) | |
download | openttd-2eafeaf7d6faf1c6116539b5ad7002c0ff448876.tar.xz |
(svn r4033) - Codechange: [Debian] Update debian packaging files to use debconf for user interaction.
Diffstat (limited to 'os/debian/config')
-rwxr-xr-x | os/debian/config | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/os/debian/config b/os/debian/config new file mode 100755 index 000000000..01dfb3659 --- /dev/null +++ b/os/debian/config @@ -0,0 +1,21 @@ +#!/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; |