-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: add automation for updating postject dependency
Signed-off-by: Darshan Sen <[email protected]> PR-URL: #46157 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Maintaining postject | ||
|
||
The [postject](https://github.com/nodejs/postject) dependency is used for the | ||
[Single Executable strategic initiative](https://github.com/nodejs/single-executable). | ||
|
||
## Updating postject | ||
|
||
The `tools/dep_updaters/update-postject.sh` script automates the update of the | ||
postject source files. | ||
|
||
Check that Node.js still builds and tests. | ||
|
||
## Committing postject | ||
|
||
Add postject: `git add --all test/fixtures/postject-copy` | ||
|
||
Commit the changes with a message like: | ||
|
||
```text | ||
deps: update postject to 1.0.0-alpha.4 | ||
Updated as described in doc/contributing/maintaining-postject.md. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# Shell script to update postject in the source tree to the latest release. | ||
|
||
# This script must be in the tools directory when it runs because it uses the | ||
# script source file path to determine directories to work in. | ||
|
||
set -ex | ||
|
||
cd "$( dirname "$0" )/../.." || exit | ||
rm -rf test/fixtures/postject-copy | ||
mkdir test/fixtures/postject-copy | ||
cd test/fixtures/postject-copy || exit | ||
|
||
ROOT="$PWD/../../.." | ||
[ -z "$NODE" ] && NODE="$ROOT/out/Release/node" | ||
[ -x "$NODE" ] || NODE=$(command -v node) | ||
NPM="$ROOT/deps/npm/bin/npm-cli.js" | ||
|
||
"$NODE" "$NPM" init --yes | ||
|
||
"$NODE" "$NPM" install --no-bin-links --ignore-scripts postject |