Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Issue 3177031: Fix bashisms: add quotes around paths (Closed)

Created:
10 years, 4 months ago by Timur Iskhodzhanov
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix bashisms: add quotes around paths Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57171

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M scripts/build-memcheck-for-chromium.sh View 1 chunk +1 line, -1 line 0 comments Download
M scripts/build-tsan-for-chromium.sh View 2 chunks +5 lines, -5 lines 0 comments Download
M scripts/common.sh View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Timur Iskhodzhanov
10 years, 4 months ago (2010-08-24 11:40:41 UTC) #1
Alexander Potapenko
10 years, 4 months ago (2010-08-24 11:41:57 UTC) #2
LGTM

On Tue, Aug 24, 2010 at 3:40 PM,  <timurrrr@chromium.org> wrote:
> Reviewers: Alexander Potapenko,
>
> Description:
> Fix bashisms: add quotes around paths
>
> Please review this at http://codereview.chromium.org/3177031/show
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/deps/third_party/valgrind/
>
> Affected files:
>  M     scripts/build-memcheck-for-chromium.sh
>  M     scripts/build-tsan-for-chromium.sh
>  M     scripts/common.sh
>
>
> Index: scripts/build-memcheck-for-chromium.sh
> ===================================================================
> --- scripts/build-memcheck-for-chromium.sh      (revision 56518)
> +++ scripts/build-memcheck-for-chromium.sh      (working copy)
> @@ -22,7 +22,7 @@
>  checkout_and_patch_valgrind "$MEMCHECK_SVN_REV" "$MEMCHECK_VEX_SVN_REV" \
>                             "$VG_MEMCHECK_DIR"
>
> -cd $VG_MEMCHECK_DIR
> +cd "$VG_MEMCHECK_DIR"
>
>  # Apply some Memcheck-specific pathes
>
> Index: scripts/build-tsan-for-chromium.sh
> ===================================================================
> --- scripts/build-tsan-for-chromium.sh  (revision 56521)
> +++ scripts/build-tsan-for-chromium.sh  (working copy)
> @@ -38,17 +38,17 @@
>            VALGRIND_ROOT="$VG_TSAN_DIR" $SPECIAL_TARGET
>
>   OUT_BIN="$ORIG_BINARIES_DIR/$PLATFORM/bin"
> -  mkdir -p $OUT_BIN
> +  mkdir -p "$OUT_BIN"
>   # See below for the definition of ORIG_BINARIES_DIR
> -  $THISDIR/tsan/tsan/mk-self-contained-valgrind.sh \
> +  "$THISDIR/tsan/tsan/mk-self-contained-valgrind.sh" \
>     "$VG_TSAN_DIR/out/$PLATFORM" "tsan" \
>     "$OUT_BIN/valgrind-tsan.sh"
>  }
>
>  TSAN_REV=2386
>  TSAN_DIR="$THISDIR/tsan" # Directory to checkout TSan sources
> -rm -rf $TSAN_DIR
> -svn co -r "$TSAN_REV" http://data-race-test.googlecode.com/svn/trunk
> $TSAN_DIR
> +rm -rf "$TSAN_DIR"
> +svn co -r "$TSAN_REV" http://data-race-test.googlecode.com/svn/trunk
> "$TSAN_DIR"
>
>  VG_TSAN_DIR="$THISDIR/valgrind" # Directory to checkout Valgrind sources
>  sh tsan/third_party/update_valgrind.sh # Fetch sources from
> valgrind-variant
> @@ -81,6 +81,6 @@
>  # Ugly hack!
>  # We build Valrgind binaries in the $VG_TSAN_DIR/out and then pack
>  # them into self-contained .sh file into $ORIG_BINARIES_DIR/$PLATFORM
> -ORIG_BINARIES_DIR=$BINARIES_DIR
> +ORIG_BINARIES_DIR="$BINARIES_DIR"
>  BINARIES_DIR="$VG_TSAN_DIR/out"
>  build_valgrind_for_available_platforms
> Index: scripts/common.sh
> ===================================================================
> --- scripts/common.sh   (revision 56518)
> +++ scripts/common.sh   (working copy)
> @@ -20,7 +20,7 @@
>   # $3 = source dir
>   # Checkout Valgrind, apply our patches to Valgrind.
>   # The source will be put in $THISDIR/valgrind-source
> -  cd $THISDIR
> +  cd "$THISDIR"
>   VG_REV="$1"
>   VEX_REV="$2"
>   SOURCE_DIR="$3"
> @@ -152,7 +152,7 @@
>
>   # Delete un-needed stuff from the $OUTPUT_DIR
>   # TODO(timurrrr): probably, we should just don't build the unused tools
> -  cd $OUTPUT_DIR
> +  cd "$OUTPUT_DIR"
>   rm -rf include
>   rm -rf lib/pkgconfig lib/*.a
>   rm bin/*cg_* bin/callgrind*
> @@ -177,7 +177,7 @@
>   fi
>
>   # We're done
> -  cd $PREV_DIR
> +  cd "$PREV_DIR"
>   # }}}
>  }
>
> @@ -229,7 +229,7 @@
>
>  # Check that the binaries directory exists.
>  BINARIES_DIR="$THISDIR/../binaries"
> -if ! [ -a $BINARIES_DIR ]
> +if ! [ -a "$BINARIES_DIR" ]
>  then
>   echo "Error: $BINARIES_DIR doesn't exist!" >&2
>   exit 1
>
>
>

Powered by Google App Engine
This is Rietveld 408576698