3 CONFIGFILE
=/etc
/mplayer
/mplayer.conf
7 # Source debconf library.
8 .
/usr
/share
/debconf
/confmodule
10 if test -r $CONFIGFILE && ! grep -q '### mplayer DEBCONF AREA' $CONFIGFILE
12 db_input medium
'mplayer/replace-existing-files' || true
14 if [ "$RET" != "true" ]; then
17 db_get
'mplayer/replace-existing-files' || true
20 ########################################## find fonts
21 #default font (if available)
22 BESTFONT
=/usr
/share
/fonts
/truetype
/Arial.ttf
23 [ -r $BESTFONT ] || BESTFONT
=/usr
/share
/fonts
/truetype
/freefont
/FreeSans.ttf
25 t
=$
(tempfile
-p fonts
)
26 find /usr
/share
/fonts
/ /?
/?
in*/?ont
* -type f
-iname '*.ttf' -maxdepth 3 2> /dev
/null
> $t || true
30 fonts
=$
( awk '{print a $0;a=", "}' $t || true
)
31 db_subst
"mplayer/ttfont" ttfontchoices
$fonts || true
32 ## suppose the question is skipped: give a default
34 [ -r $BESTFONT ] || a
=$
(head -1 $t)
35 db_subst
"mplayer/ttfont" ttfontdefault
$a || true
37 db_input medium mplayer
/ttfont || true
38 if [ "$?" = 30 ] ; then
39 db_set mplayer
/ttfont
$a || true
42 db_input medium
"mplayer/no-ttfont" || true
49 ############################################################