-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from go-clang/automate-bootstrap-regeneration
Add a script to regenerate the bootstrap repository
- Loading branch information
Showing
2 changed files
with
37 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,26 @@ | ||
#!/bin/bash | ||
|
||
set -exuo pipefail | ||
|
||
# Switch to the correct Clang version for the bootstrap and the gen repositories | ||
$GOPATH/src/github.com/go-clang/gen/scripts/switch-clang-version.sh 3.4 | ||
|
||
# Install the current go-clang-gen command | ||
make -C $GOPATH/src/github.com/go-clang/gen install | ||
|
||
# Generate the Clang bindings | ||
cd $GOPATH/src/github.com/go-clang/bootstrap/clang/ | ||
|
||
rm -rf clang-c/ | ||
rm *_gen.go | ||
|
||
go-clang-gen | ||
|
||
cd .. | ||
|
||
# Install and test the bindings | ||
make install | ||
make test | ||
|
||
# Show the current state of the repository | ||
git status |