mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
tools: remove duplicate variables
All our script already define a `BASE_DIR` variable, needed to load `utils.sh`; computing a similar `ROOT` variable in `utils.sh` is pure overhead and needlessly complicates reading the source files. Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/67511 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
3 files changed
+2
-5
No files matched your search
@@ -60,7 +60,7 @@ rm -rf node_modules
|
||||
mv ./* "$DEPS_DIR/amaro"
|
||||
|
||||
# update version information in src/undici_version.h
|
||||
cat > "$ROOT/src/amaro_version.h" <<EOF
|
||||
cat > "$BASE_DIR/src/amaro_version.h" <<EOF
|
||||
// This is an auto generated file, please do not edit.
|
||||
// Refer to tools/dep_updaters/update-amaro.sh
|
||||
#ifndef SRC_AMARO_VERSION_H_
|
||||
|
||||
@@ -73,7 +73,7 @@ echo "Replacing existing c-ares"
|
||||
replace_dir "$DEPS_DIR/cares" "$ARES_FOLDER"
|
||||
|
||||
echo "Updating cares.gyp"
|
||||
"$NODE" "$ROOT/tools/dep_updaters/update-c-ares.mjs"
|
||||
"$NODE" "$BASE_DIR/tools/dep_updaters/update-c-ares.mjs"
|
||||
|
||||
# Update the version number on maintaining-dependencies.md
|
||||
# and print the new version as the last line of the script as we need
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
ROOT=$(cd "$(dirname "$0")/../.." && pwd)
|
||||
export ROOT
|
||||
|
||||
# This function compare new version with current version of a dependency and
|
||||
# exit the script if the versions are the same
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user