Mercurial > mplayer.hg
comparison configure @ 27264:6cead9d8eb8f
cosmetics: Rename LANGUAGES variable to msg_langs.
author | diego |
---|---|
date | Wed, 16 Jul 2008 15:51:15 +0000 |
parents | 24a020de8484 |
children | aa77b7a4a6bf |
comparison
equal
deleted
inserted
replaced
27263:24a020de8484 | 27264:6cead9d8eb8f |
---|---|
189 case `echo -n` in | 189 case `echo -n` in |
190 -n) _echo_n= _echo_c='\c' ;; # SysV echo | 190 -n) _echo_n= _echo_c='\c' ;; # SysV echo |
191 *) _echo_n='-n ' _echo_c= ;; # BSD echo | 191 *) _echo_n='-n ' _echo_c= ;; # BSD echo |
192 esac | 192 esac |
193 | 193 |
194 LANGUAGES=`echo help/help_mp-??.h help/help_mp-??_??.h | sed -e "s:help/help_mp-\(..\).h:\1:g" -e "s:help/help_mp-\(.....\).h:\1:g"` | 194 msg_langs=`echo help/help_mp-??.h help/help_mp-??_??.h | sed -e "s:help/help_mp-\(..\).h:\1:g" -e "s:help/help_mp-\(.....\).h:\1:g"` |
195 | 195 |
196 show_help(){ | 196 show_help(){ |
197 cat << EOF | 197 cat << EOF |
198 Usage: $0 [OPTIONS]... | 198 Usage: $0 [OPTIONS]... |
199 | 199 |
415 --charset=charset convert the console messages to this character set | 415 --charset=charset convert the console messages to this character set |
416 --language=list a white space or comma separated list of languages for | 416 --language=list a white space or comma separated list of languages for |
417 translated man pages, the first language is used for | 417 translated man pages, the first language is used for |
418 messages and the GUI (the environment variable | 418 messages and the GUI (the environment variable |
419 \$LINGUAS is also honored) [en] | 419 \$LINGUAS is also honored) [en] |
420 (Available: $LANGUAGES all) | 420 (Available: $msg_langs all) |
421 --with-install=PATH path to a custom install program | 421 --with-install=PATH path to a custom install program |
422 | 422 |
423 Advanced options: | 423 Advanced options: |
424 --enable-mmx enable MMX [autodetect] | 424 --enable-mmx enable MMX [autodetect] |
425 --enable-mmxext enable MMX2 (Pentium III, Athlon) [autodetect] | 425 --enable-mmxext enable MMX2 (Pentium III, Athlon) [autodetect] |
2600 | 2600 |
2601 | 2601 |
2602 echocheck "language" | 2602 echocheck "language" |
2603 test -z "$_language" && _language=$LINGUAS | 2603 test -z "$_language" && _language=$LINGUAS |
2604 _language=`echo $_language | tr , " "` | 2604 _language=`echo $_language | tr , " "` |
2605 echo $_language | grep -q all || LANGUAGES="$_language en" | 2605 echo $_language | grep -q all || msg_langs="$_language en" |
2606 for lang in $_language ; do | 2606 for lang in $_language ; do |
2607 test "$lang" = all && lang=en | 2607 test "$lang" = all && lang=en |
2608 if test -f "help/help_mp-${lang}.h" ; then | 2608 if test -f "help/help_mp-${lang}.h" ; then |
2609 _language=$lang | 2609 _language=$lang |
2610 break | 2610 break |
2614 fi | 2614 fi |
2615 done | 2615 done |
2616 test -z "$_language" && _language=en | 2616 test -z "$_language" && _language=en |
2617 _mp_help="help/help_mp-${_language}.h" | 2617 _mp_help="help/help_mp-${_language}.h" |
2618 test -f $_mp_help || die "$_mp_help not found" | 2618 test -f $_mp_help || die "$_mp_help not found" |
2619 for lang in $LANGUAGES ; do | 2619 for lang in $msg_langs ; do |
2620 if test -f "DOCS/man/$lang/mplayer.1" ; then | 2620 if test -f "DOCS/man/$lang/mplayer.1" ; then |
2621 MAN_LANG_ALL="$lang $MAN_LANG_ALL" | 2621 MAN_LANG_ALL="$lang $MAN_LANG_ALL" |
2622 fi | 2622 fi |
2623 done | 2623 done |
2624 MAN_LANG="$(echo $MAN_LANG_ALL | sed 's/en//')" | 2624 MAN_LANG="$(echo $MAN_LANG_ALL | sed 's/en//')" |
8605 Languages: | 8605 Languages: |
8606 Messages/GUI: $_language | 8606 Messages/GUI: $_language |
8607 EOF | 8607 EOF |
8608 | 8608 |
8609 echo ${_echo_n} " Manual pages: $MAN_LANG_ALL ${_echo_c}" | 8609 echo ${_echo_n} " Manual pages: $MAN_LANG_ALL ${_echo_c}" |
8610 test "$LANGUAGES" = en && echo ${_echo_n} " (no localization selected, use --language=all)${_echo_c}" | 8610 test "$msg_langs" = en && echo ${_echo_n} " (no localization selected, use --language=all)${_echo_c}" |
8611 echo | 8611 echo |
8612 | 8612 |
8613 cat << EOF | 8613 cat << EOF |
8614 | 8614 |
8615 Enabled optional drivers: | 8615 Enabled optional drivers: |