[FFmpeg-devel] [PATCH] configure - simplify check for --help and -h

Måns Rullgård mans
Fri Sep 21 22:31:26 CEST 2007


Ramiro Ribeiro Polla <ramiro at lisha.ufsc.br> writes:

> Hello,
>
> $subj
>
> Ramiro Polla
> Index: configure
> ===================================================================
> --- configure	(revision 10542)
> +++ configure	(working copy)
> @@ -899,10 +899,6 @@
>        die "Out of tree builds are impossible with whitespace in source path."
>  fi
>  
> -if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
> -    show_help
> -fi
> -
>  FFMPEG_CONFIGURATION="$@"
>  
>  ENCODER_LIST=`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' "$source_path/libavcodec/allcodecs.c"`
> @@ -1008,7 +1004,7 @@
>      NAME=$(toupper ${NAME%s})
>      eval show_list \$${NAME}_LIST
>    ;;
> -  --help) show_help
> +  --help|-h) show_help
>    ;;
>    *)
>    die_unknown $opt

OK

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list