Skip to content

Commit 4898329

Browse files
lpincafasenderos
authored andcommitted
tools: fix zconf.h path
Use the `DEPS_DIR` variable to build the path instead of hardcoding it. PR-URL: nodejs#48089 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 799e4e1 commit 4898329

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/dep_updaters/update-zlib.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ set -e
77
BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd)
88
DEPS_DIR="$BASE_DIR/deps"
99

10-
echo "Comparing latest upstream with current revision"
10+
CURRENT_VERSION=$(grep "#define ZLIB_VERSION" "$DEPS_DIR/zlib/zlib.h" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p")
11+
12+
NEW_VERSION_ZLIB_H=$(curl -s "https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/zlib/zlib.h?format=TEXT" | base64 --decode)
1113

1214
# Revert zconf.h changes before checking diff
1315
perl -i -pe 's|^//#include "chromeconf.h"|#include "chromeconf.h"|' "$DEPS_DIR/zlib/zconf.h"

0 commit comments

Comments
 (0)