Skip to content

Commit 168d080

Browse files
lpincaMoLow
authored andcommitted
tools: fix zconf.h path
Use the `DEPS_DIR` variable to build the path instead of hardcoding it. PR-URL: #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 2a4f79a commit 168d080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/dep_updaters/update-zlib.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd)
66
DEPS_DIR="$BASE_DIR/deps"
77

88
CURRENT_VERSION=$(grep "#define ZLIB_VERSION" "$DEPS_DIR/zlib/zlib.h" | sed -n "s/^.*VERSION \"\(.*\)\"/\1/p")
9-
9+
1010
NEW_VERSION_ZLIB_H=$(curl -s "https://chromium.googlesource.com/chromium/src/+/refs/heads/main/third_party/zlib/zlib.h?format=TEXT" | base64 --decode)
1111

1212
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"
4747

4848
mv "$DEPS_DIR/zlib.def" "$DEPS_DIR/zlib/win32"
4949

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"
5151

5252
echo "All done!"
5353
echo ""

0 commit comments

Comments
 (0)