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 RafaelGSS committed Nov 10, 2022
1 parent 89390a6 commit 76cbc07
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
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
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
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
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 76cbc07

Please sign in to comment.