blob: 5c66eaab34ff23e48c97c4f0cbd9deeb9cd0f8cc (
plain)
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
30
|
#! /bin/sh
set -e
# Load debconf
. /usr/share/debconf/confmodule
CFG_FILE='/etc/fpc.cfg'
CFG_PRIORITY=$(echo ${VERSION} | 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
#DEBHELPER#
|