[FFmpeg-cvslog] configure: Add --quiet command line parameter to suppress informative output

Diego Biurrun git at videolan.org
Fri Mar 31 11:24:16 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Nov  6 18:33:05 2016 +0100| [59d2b00d201935c16408a2917957d89a170fe58f] | committer: Diego Biurrun

configure: Add --quiet command line parameter to suppress informative output

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59d2b00d201935c16408a2917957d89a170fe58f
---

 configure | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 23be425..e862757 100755
--- a/configure
+++ b/configure
@@ -63,6 +63,7 @@ Options: [defaults in brackets after descriptions]
 
 Help options:
   --help                   print this message
+  --quiet                  Suppress showing informative output
   --list-decoders          show all available decoders
   --list-encoders          show all available encoders
   --list-hwaccels          show all available hardware accelerators
@@ -1167,7 +1168,7 @@ apply(){
 }
 
 cp_if_changed(){
-    cmp -s "$1" "$2" && echo "$2 is unchanged" && return
+    cmp -s "$1" "$2" && { test "$quiet" != "yes" && echo "$2 is unchanged"; } && return
     mkdir -p "$(dirname $2)"
     $cp_f "$1" "$2"
 }
@@ -2740,6 +2741,8 @@ for opt do
         ;;
         --help|-h) show_help
         ;;
+        --quiet|-q) quiet=yes
+        ;;
         *)
             optname="${opt%%=*}"
             optname="${optname#--}"
@@ -5112,6 +5115,8 @@ expand_deps(){
 
 map 'expand_deps $v' $LIBRARY_LIST
 
+if test "$quiet" != "yes"; then
+
 echo "install prefix            $prefix"
 echo "source path               $source_path"
 echo "C compiler                $cc"
@@ -5211,6 +5216,8 @@ echo "License: $license"
 
 echo "Creating config.mak and config.h..."
 
+fi # test "$quiet" != "yes"
+
 test -e Makefile || echo "include $source_path/Makefile" > Makefile
 
 config_files="$TMPH config.mak"



More information about the ffmpeg-cvslog mailing list