configure: use map() function in a couple of places
authorMåns Rullgård <mans@mansr.com>
Thu, 11 Mar 2010 00:39:06 +0000 (00:39 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 11 Mar 2010 00:39:06 +0000 (00:39 +0000)
Originally committed as revision 22444 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 5d576ec..cf582fa 100755 (executable)
--- a/configure
+++ b/configure
@@ -2947,12 +2947,8 @@ if enabled source_path_used; then
         libpostproc/Makefile
         libswscale/Makefile
     "
-    for dir in $DIRS ; do
-        mkdir -p $dir
-    done
-    for f in $FILES ; do
-        $ln_s "$source_path/$f" $f
-    done
+    map 'mkdir -p $_' $DIRS;
+    map '$ln_s "$source_path/$_" $_' $FILES
 fi
 
 enabled stripping || strip="echo skipping strip"