Mercurial > mplayer.hg
comparison configure @ 18731:bd21d8500afd
Use a function for help output.
author | diego |
---|---|
date | Fri, 16 Jun 2006 18:38:35 +0000 |
parents | 11bc41259cc6 |
children | e702b1706df1 |
comparison
equal
deleted
inserted
replaced
18730:93241711b635 | 18731:bd21d8500afd |
---|---|
182 *) _echo_n='-n ' _echo_c= ;; # BSD echo | 182 *) _echo_n='-n ' _echo_c= ;; # BSD echo |
183 esac | 183 esac |
184 | 184 |
185 LANGUAGES=`echo help/help_mp-??.h help/help_mp-??_??.h | sed "s:help/help_mp-\(..\).h:\1:g" | sed "s:help/help_mp-\(.....\).h:\1:g"` | 185 LANGUAGES=`echo help/help_mp-??.h help/help_mp-??_??.h | sed "s:help/help_mp-\(..\).h:\1:g" | sed "s:help/help_mp-\(.....\).h:\1:g"` |
186 | 186 |
187 for parm in "$@" ; do | 187 show_help(){ |
188 if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then | 188 cat << EOF |
189 cat << EOF | |
190 | |
191 Usage: $0 [OPTIONS]... | 189 Usage: $0 [OPTIONS]... |
192 | 190 |
193 Configuration: | 191 Configuration: |
194 -h, --help display this help and exit | 192 -h, --help display this help and exit |
195 | 193 |
438 This configure script is NOT autoconf-based, even though its output is similar. | 436 This configure script is NOT autoconf-based, even though its output is similar. |
439 It will try to autodetect all configuration options. If you --enable an option | 437 It will try to autodetect all configuration options. If you --enable an option |
440 it will be forcefully turned on, skipping autodetection. This can break | 438 it will be forcefully turned on, skipping autodetection. This can break |
441 compilation, so you need to know what you are doing. | 439 compilation, so you need to know what you are doing. |
442 EOF | 440 EOF |
443 exit 0 | 441 exit 0 |
444 fi | 442 } #show_help() |
445 done # for parm in ... | 443 |
446 | 444 for parm in "$@" ; do |
445 case $parm in | |
446 --help|-help|-h) | |
447 show_help | |
448 esac | |
449 done | |
447 | 450 |
448 # 1st pass checking for vital options | 451 # 1st pass checking for vital options |
449 _mmx=auto | 452 _mmx=auto |
450 _3dnow=auto | 453 _3dnow=auto |
451 _3dnowext=auto | 454 _3dnowext=auto |