GeezerVison is showing github.com — tools: fix zconf.h path · nodejs/node@0c8c383
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/dep_updaters/update-zlib.sh +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd) |
6 | 6 | DEPS_DIR="$BASE_DIR/deps" |
7 | 7 |
|
8 | 8 | CURRENT_VERSION=$(grep "#define ZLIB_VERSION" "$DEPS_DIR/zlib/zlib.h" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p") |
9 | | - |
| 9 | + |
10 | 10 | NEW_VERSION_ZLIB_H=$(curl -s "https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/zlib/zlib.h?format=TEXT" | base64 --decode) |
11 | 11 |
|
12 | 12 | NEW_VERSION=$(printf '%s' "$NEW_VERSION_ZLIB_H" | grep "#define ZLIB_VERSION" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p") |
@@ -47,7 +47,7 @@ mkdir "$DEPS_DIR/zlib/win32" |
47 | 47 |
|
48 | 48 | mv "$DEPS_DIR/zlib.def" "$DEPS_DIR/zlib/win32" |
49 | 49 |
|
50 | | -perl -i -pe 's|^#include "chromeconf.h"|//#include "chromeconf.h"|' deps/zlib/zconf.h |
| 50 | +perl -i -pe 's|^#include "chromeconf.h"|//#include "chromeconf.h"|' "$DEPS_DIR/zlib/zconf.h" |
51 | 51 |
|
52 | 52 | echo "All done!" |
53 | 53 | echo "" |
|