Mercurial > mplayer.hg
view debian/config @ 20804:cfd35d61bed3
r20711: MSGTRs for demux_avi.c
r20712: better wording for "workarounding"
r20739: Remove remnants of long-gone libfame. (previously applied)
r20774: Adding ability to check allowed frequency range.
r20775: Spelling fix: Allowable -> Allowed
r20780: MSGTRs for ao_alsa.c
r20781: MSGTRs for libvo/aspect.c and libvo/vo_xv.c
r20782,r20783: (do not apply)
r20817: add full stop at end of sentence
author | kraymer |
---|---|
date | Thu, 09 Nov 2006 18:05:06 +0000 |
parents | a5bef61f49bf |
children |
line wrap: on
line source
#!/bin/sh CONFIGFILE=/etc/mplayer/mplayer.conf set -e # Source debconf library. . /usr/share/debconf/confmodule if test -r $CONFIGFILE && ! grep -q '### mplayer DEBCONF AREA' $CONFIGFILE then db_input medium 'mplayer/replace-existing-files' || true db_go || true if [ "$RET" != "true" ]; then exit 0 fi db_get 'mplayer/replace-existing-files' || true fi ########################################## find fonts #default font (if available) BESTFONT=/usr/share/fonts/truetype/Arial.ttf [ -r $BESTFONT ] || BESTFONT=/usr/share/fonts/truetype/freefont/FreeSans.ttf t=$(tempfile -p fonts ) find /usr/share/fonts/ /?/?in*/?ont* -type f -iname '*.ttf' -maxdepth 3 2> /dev/null > $t || true if test -s $t then fonts=$( awk '{print a $0;a=", "}' $t || true ) db_subst "mplayer/ttfont" ttfontchoices $fonts || true ## suppose the question is skipped: give a default a=$BESTFONT [ -r $BESTFONT ] || a=$(head -1 $t) db_subst "mplayer/ttfont" ttfontdefault $a || true db_input medium mplayer/ttfont || true if [ "$?" = 30 ] ; then db_set mplayer/ttfont $a || true fi else db_input medium "mplayer/no-ttfont" || true fi rm $t db_go || true ############################################################ exit 0