Skip to content

Commit

Permalink
tools: allow scripts to run from anywhere
Browse files Browse the repository at this point in the history
Make the `update-cares.sh`, `update-llhttp.sh`, `update-nghttp2.sh`,
and `update-npm.sh` scripts work even if they are run outside of the
`tools` directory.

PR-URL: #45361
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
lpinca authored and danielleadams committed Jan 4, 2023
1 parent cf21533 commit 6390fec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/update-cares.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
# Shell script to update c-ares in the source tree to a specific version

BASE_DIR="$( pwd )"
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
DEPS_DIR="$BASE_DIR/deps"
ARES_VERSION=$1

Expand Down
2 changes: 1 addition & 1 deletion tools/update-llhttp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

# Shell script to update llhttp in the source tree to specific version

BASE_DIR="$( pwd )"
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
DEPS_DIR="${BASE_DIR}/deps"
LLHTTP_VERSION="$1"

Expand Down
2 changes: 1 addition & 1 deletion tools/update-nghttp2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
# Shell script to update nghttp2 in the source tree to specific version

BASE_DIR="$( pwd )"
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
DEPS_DIR="$BASE_DIR/deps"
NGHTTP2_VERSION=$1

Expand Down
2 changes: 1 addition & 1 deletion tools/update-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
# Shell script to update npm in the source tree to a specific version

BASE_DIR="$( pwd )"
BASE_DIR=$(cd "$(dirname "$0")/.." && pwd)
DEPS_DIR="$BASE_DIR/deps"
NPM_VERSION=$1

Expand Down

0 comments on commit 6390fec

Please sign in to comment.