summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-16 18:38:35 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-16 18:38:35 +0000
commit58dc9b7eb25788a6b38ce2bf37125b14420c9969 (patch)
tree6a93fbfb0055f1d2f9c441be9aa204149a600d24 /configure
parentfc293f6305be40db6c5f8bad30434ea0bccd10da (diff)
downloadmpv-58dc9b7eb25788a6b38ce2bf37125b14420c9969.tar.bz2
mpv-58dc9b7eb25788a6b38ce2bf37125b14420c9969.tar.xz
Use a function for help output.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18734 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 10 insertions, 7 deletions
diff --git a/configure b/configure
index 86a75204a8..6d4bc65f37 100755
--- a/configure
+++ b/configure
@@ -184,10 +184,8 @@ esac
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"`
-for parm in "$@" ; do
- if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then
- cat << EOF
-
+show_help(){
+cat << EOF
Usage: $0 [OPTIONS]...
Configuration:
@@ -440,10 +438,15 @@ It will try to autodetect all configuration options. If you --enable an option
it will be forcefully turned on, skipping autodetection. This can break
compilation, so you need to know what you are doing.
EOF
- exit 0
- fi
-done # for parm in ...
+exit 0
+} #show_help()
+for parm in "$@" ; do
+ case $parm in
+ --help|-help|-h)
+ show_help
+ esac
+done
# 1st pass checking for vital options
_mmx=auto