config is in fp-compiler-2.6.2 2.6.2-8.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #! /bin/sh
set -e
# Load debconf
. /usr/share/debconf/confmodule
CFG_FILE='/etc/fpc.cfg'
CFG_PRIORITY=$(echo 2.6.2 | sed -e 's/\.//g')
if test -f "${CFG_FILE}" && ! test -L "${CFG_FILE}"
then
db_input high fp-compiler/rename_cfg || test $? -eq 30
fi
MANUAL_SELECT_MESSAGE="Enter RC compiler name manually"
WINDRES_BINS=$(find '/usr/bin' -maxdepth 1 -mindepth 1 -executable -name "*windres*" -printf "%p, ")
db_subst fp-compiler/windres-select choices ${WINDRES_BINS} "${MANUAL_SELECT_MESSAGE}"
db_input low fp-compiler/windres-select || test $? -eq 30
db_go
db_get fp-compiler/windres-select
if test "${RET}" = "${MANUAL_SELECT_MESSAGE}"
then
db_input low fp-compiler/windres || test $? -eq 30
else
WINDRES_BIN=${RET}
db_set fp-compiler/windres "${WINDRES_BIN}"
fi
db_go
# Debhelper code
|