-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add (optional) post-commit git hook for running bootstrap script (#22632
) Once installed this script will automatically bootstrap emscripten on each branch checkout. Use `./bootstrap -i/--install-post-checkout` to install the script. We could consider doing this automatically too as a followup if folks end up liking this solution. Fixes: #22550
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
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,11 @@ | ||
#!/bin/sh | ||
# | ||
# Git post-checkout script that takes care of running emscirpten's | ||
# bootstrap script when changing branches. | ||
# | ||
# The bootstrap script itself is smart enough to basically do nothing unless | ||
# one of the relevant files was updated (e.g. package.json). | ||
|
||
# Test for the existence of the bootstrap script itself to handle branches | ||
# that predate its existence. | ||
test -f ./bootstrap && exec ./bootstrap |