Sfoglia il codice sorgente

Cosmetic: declare local variables in Pre-Compile.sh

Follow the same style used earlier in the code and declare local
variables with the 'local' directive.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Faustino E. Osuna 13 anni fa
parent
commit
8501285b3d
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      Pre-Compile.sh

+ 4 - 4
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"