matthijs@9953: #!/bin/sh matthijs@9953: matthijs@9953: # Source debconf library. matthijs@9953: . /usr/share/debconf/confmodule matthijs@9953: matthijs@9953: FILES="trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf sample.cat" matthijs@9953: DATADIR=/usr/share/games/openttd/data matthijs@9953: matthijs@9953: MISSING="No"; matthijs@9953: for FILE in $FILES; do matthijs@9953: # Check if all the files needed are here. matthijs@9953: if [ ! -e $DATADIR/$FILE ]; then matthijs@9953: MISSING="Yes"; matthijs@9953: break; matthijs@9953: fi; matthijs@9953: done; matthijs@9953: matthijs@9953: if [ $MISSING = "Yes" ]; then matthijs@9953: db_input high openttd/datafiles || true matthijs@9953: db_go matthijs@9953: fi;