[vlc-devel] [PATCH 03/10] Cosmetic: declare local variables in Pre-Compile.sh

Faustino E. Osuna enrique.osuna at gmail.com
Tue Jan 24 01:31:50 CET 2012


Follow the same style used earlier in the code and declare local
variables with the 'local' directive.
---
 projects/macosx/framework/Pre-Compile.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/projects/macosx/framework/Pre-Compile.sh b/projects/macosx/framework/Pre-Compile.sh
index 39edf01..848f16f 100644
--- a/projects/macosx/framework/Pre-Compile.sh
+++ b/projects/macosx/framework/Pre-Compile.sh
@@ -147,13 +147,13 @@ vlc_install() {
         if test $type = "data"; then
             vlc_install_object "$main_build_dir/$src_dir/$src" "$dest_dir" "$type" $5
         else
-            fatdest="$dest_dir/$2"
-            shouldUpdateFat="no"
+            local fatdest="$dest_dir/$2"
+            local shouldUpdateFat="no"
 
-            objects=""
+            local objects=""
 
             # Create a temporary destination dir to store each ARCH object file
-            tmp_dest_dir="$VLC_BUILD_DIR/tmp/$type"
+            local tmp_dest_dir="$VLC_BUILD_DIR/tmp/$type"
             rm -Rf "${tmp_dest_dir}/*"
             mkdir -p "$tmp_dest_dir"
 
-- 
1.7.7.4




More information about the vlc-devel mailing list