File tree Expand file tree Collapse file tree 19 files changed +74
-125
lines changed Expand file tree Collapse file tree 19 files changed +74
-125
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ ROOT=$(cd "$(dirname "$0")/../.." && pwd)
12
12
[ -x " $NODE " ] || NODE=$( command -v node)
13
13
NPM=" $ROOT /deps/npm/bin/npm-cli.js"
14
14
15
- # Source the dependencies updater utils
16
- . " $ROOT /tools/dep_updaters/utils.sh"
17
-
18
15
NEW_VERSION=$( " $NODE " " $NPM " view acorn dist-tags.latest)
19
16
CURRENT_VERSION=$( " $NODE " -p " require('./deps/acorn/acorn/package.json').version" )
20
17
@@ -52,8 +49,10 @@ mv acorn-tmp/node_modules/acorn deps/acorn
52
49
53
50
rm -rf acorn-tmp/
54
51
55
- # Update the version number on doc/contributing/maintaining/maintaining-dependencies.md
56
- update_dependency_version " acorn" $NEW_VERSION
52
+ # Update the version number
53
+ # shellcheck disable=SC1091
54
+ . " $ROOT /tools/dep_updaters/utils.sh"
55
+ update_dependency_version " acorn" " $NEW_VERSION "
57
56
58
57
echo " All done!"
59
58
echo " "
Original file line number Diff line number Diff line change @@ -52,13 +52,10 @@ mv "$DEPS_DIR/ada/"*.gyp "$DEPS_DIR/ada/README.md" "$WORKSPACE/"
52
52
rm -rf " $DEPS_DIR /ada"
53
53
mv " $WORKSPACE " " $DEPS_DIR /ada"
54
54
55
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
56
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
57
- PACKAGE_NAME=" ada"
58
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
59
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
60
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
61
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
55
+ # Update the version number
56
+ # shellcheck disable=SC1091
57
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
58
+ update_dependency_version " ada" " $NEW_VERSION "
62
59
63
60
echo " All done!"
64
61
echo " "
Original file line number Diff line number Diff line change @@ -51,13 +51,10 @@ mv "$WORKSPACE/base64" "$DEPS_DIR/base64/"
51
51
# to work, we create it and leave it empty.
52
52
echo " // Intentionally empty" >> " $DEPS_DIR /base64/base64/lib/config.h"
53
53
54
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
55
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
56
- PACKAGE_NAME=" base64"
57
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
58
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
59
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
60
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
54
+ # Update the version number
55
+ # shellcheck disable=SC1091
56
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
57
+ update_dependency_version " base64" " $NEW_VERSION "
61
58
62
59
echo " All done!"
63
60
echo " "
Original file line number Diff line number Diff line change @@ -62,13 +62,10 @@ mkdir "$DEPS_DIR/brotli"
62
62
echo " Update c and LICENSE"
63
63
mv " $WORKSPACE /brotli/c" " $WORKSPACE /brotli/LICENSE" " $WORKSPACE /brotli/brotli.gyp" " $DEPS_DIR /brotli"
64
64
65
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
66
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
67
- PACKAGE_NAME=" brotli"
68
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
69
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
70
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
71
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
65
+ # Update the version number
66
+ # shellcheck disable=SC1091
67
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
68
+ update_dependency_version " brotli" " $NEW_VERSION "
72
69
73
70
echo " All done!"
74
71
echo " "
Original file line number Diff line number Diff line change @@ -58,13 +58,10 @@ echo "Replacing existing c-ares"
58
58
rm -rf " $DEPS_DIR /cares"
59
59
mv " $WORKSPACE /cares" " $DEPS_DIR /"
60
60
61
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
62
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
63
- PACKAGE_NAME=" c-ares"
64
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
65
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
66
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
67
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
61
+ # Update the version number
62
+ # shellcheck disable=SC1091
63
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
64
+ update_dependency_version " c-ares" " $NEW_VERSION "
68
65
69
66
echo " All done!"
70
67
echo " "
Original file line number Diff line number Diff line change @@ -50,13 +50,10 @@ rm -rf "$DEPS_DIR/cjs-module-lexer"
50
50
51
51
mv node_modules/cjs-module-lexer " $DEPS_DIR /cjs-module-lexer"
52
52
53
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
54
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
55
- PACKAGE_NAME=" cjs-module-lexer"
56
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
57
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
58
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
59
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
53
+ # Update the version number
54
+ # shellcheck disable=SC1091
55
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
56
+ update_dependency_version " cjs-module-lexer" " $NEW_VERSION "
60
57
61
58
echo " All done!"
62
59
echo " "
Original file line number Diff line number Diff line change @@ -80,12 +80,10 @@ NEW_GYP=$(
80
80
81
81
echo " $NEW_GYP " > " $DEPS_DIR /googletest/googletest.gyp"
82
82
83
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
84
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
85
- PACKAGE_NAME=" googletest"
86
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
87
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $NEW_VERSION ' |' $DEPS_FILE_PATH
88
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' [' $NEW_VERSION ' ](https://github.com/google/googletest/commit/' $NEW_VERSION ' )|' $DEPS_FILE_PATH
83
+ # Update the version number
84
+ # shellcheck disable=SC1091
85
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
86
+ update_dependency_version " googletest" " $NEW_VERSION "
89
87
90
88
echo " All done!"
91
89
echo " "
Original file line number Diff line number Diff line change @@ -61,13 +61,10 @@ sed -i '' -e "s|\"md5\": \"\(.*\)\".*|\"md5\": \"$CHECKSUM\"|" "$TOOLS_DIR/icu/c
61
61
62
62
rm -rf out " $DEPS_DIR /icu" " $DEPS_DIR /icu4c*"
63
63
64
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
65
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
66
- PACKAGE_NAME=" icu-small"
67
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
68
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
69
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
70
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
64
+ # Update the version number
65
+ # shellcheck disable=SC1091
66
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
67
+ update_dependency_version " icu-small" " $NEW_VERSION "
71
68
72
69
echo " All done!"
73
70
echo " "
Original file line number Diff line number Diff line change @@ -52,13 +52,10 @@ mv "$DEPS_DIR/uv/"*.gyp "$DEPS_DIR/uv/"*.gypi "$WORKSPACE/uv/"
52
52
rm -rf " $DEPS_DIR /uv"
53
53
mv " $WORKSPACE /uv" " $DEPS_DIR /"
54
54
55
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
56
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
57
- PACKAGE_NAME=" libuv"
58
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
59
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
60
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
61
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
55
+ # Update the version number
56
+ # shellcheck disable=SC1091
57
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
58
+ update_dependency_version " libuv" " $NEW_VERSION "
62
59
63
60
echo " All done!"
64
61
echo " "
Original file line number Diff line number Diff line change 69
69
cp -a " llhttp-release-v$NEW_VERSION " " $DEPS_DIR /llhttp"
70
70
fi
71
71
72
- # update the version number on doc/contributing/maintaining/maintaining-dependencies.md
73
- DEPS_FILE_PATH=" $BASE_DIR /doc/contributing/maintaining/maintaining-dependencies.md"
74
- PACKAGE_NAME=" llhttp"
75
- VERSION_NO_DOTS=$( echo $NEW_VERSION | sed -e ' s/\.//g' ) # remove version dots for anchor markdown
76
- perl -i -pe ' s|^\* \[' $PACKAGE_NAME ' .*|* [' $PACKAGE_NAME ' ' $NEW_VERSION ' ][]|' $DEPS_FILE_PATH
77
- perl -i -pe ' s|^\[' $PACKAGE_NAME ' .*\]: #' $PACKAGE_NAME ' .*|[' $PACKAGE_NAME ' ' $NEW_VERSION ' ]: #' $PACKAGE_NAME ' -' $VERSION_NO_DOTS ' |' $DEPS_FILE_PATH
78
- perl -i -pe ' s|^### ' $PACKAGE_NAME ' .*|### ' $PACKAGE_NAME ' ' $NEW_VERSION ' |' $DEPS_FILE_PATH
72
+ # Update the version number
73
+ # shellcheck disable=SC1091
74
+ . " $BASE_DIR /tools/dep_updaters/utils.sh"
75
+ update_dependency_version " llhttp" " $NEW_VERSION "
79
76
80
77
echo " "
81
78
echo " All done!"
You can’t perform that action at this time.
0 commit comments