[SCM] libav/experimental: configure: simplify set_default function

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:32:33 UTC 2013


The following commit has been merged in the experimental branch:
commit 88268e944a4b678248734fdbccf371327ea5a253
Author: Måns Rullgård <mans at mansr.com>
Date:   Sun Nov 23 12:36:31 2008 +0000

    configure: simplify set_default function
    
    Originally committed as revision 15911 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index 5cf1ef6..617ad55 100755
--- a/configure
+++ b/configure
@@ -362,7 +362,7 @@ disabled_any(){
 
 set_default(){
     for opt; do
-        eval test -z "\$$opt" && eval $opt=\$${opt}_default
+        eval : \${$opt:=\$${opt}_default}
     done
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list