Mercurial > mplayer.hg
view debian/config @ 27697:099f8372c2cf
r27182: apply parameter name change of no-correct-pts from r26842 to man page
r27208: dvd:// streams accept the device path in the url; patch by Mathieu SCHROETER mathieu.schroeter gamesover ch
r27230: Give all shell scripts a .sh suffix for consistency.
r27235: moved o option beetwen m* and p*
r27236: another alphabetical order correction
r27334: -border/-noborder are supported by gl/gl2, too, but only on Windows.
r27337: No idea which vos support -noborder how well, though those based on
X11 or running on Windows _should_ work.
Just remove that line for now.
r27342: Remove outdated "X11 only" from xineramascreen option and try to make clearer
what it does and what it does not.
r27348: add list of supported vo's to -xineramascreen
author | kraymer |
---|---|
date | Wed, 08 Oct 2008 16:22:23 +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