[MPlayer-cvslog] r18734 - trunk/configure

diego subversion at mplayerhq.hu
Fri Jun 16 20:38:35 CEST 2006


Author: diego
Date: Fri Jun 16 20:38:35 2006
New Revision: 18734

Modified:
   trunk/configure

Log:
Use a function for help output.


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Fri Jun 16 20:38:35 2006
@@ -184,10 +184,8 @@
 
 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 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



More information about the MPlayer-cvslog mailing list