-
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 #118 from go-clang/rebase-on-update
Rebase the new bootstrap commits on the version repositories
- Loading branch information
Showing
3 changed files
with
8 additions
and
13 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
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -exuo pipefail | ||
|
||
if [ -z "$1" ]; then | ||
exit | ||
fi | ||
|
||
export LLVM_VERSION=$1 | ||
|
||
# Switch Clang version | ||
$(dirname "$0")/switch-clang-version.sh $LLVM_VERSION || exit | ||
$(dirname "$0")/switch-clang-version.sh $LLVM_VERSION | ||
|
||
# Update the repository | ||
cd v${LLVM_VERSION} || exit | ||
cd v${LLVM_VERSION} | ||
|
||
git checkout bootstrap/master || exit | ||
LAST_BOOTSTRAP=$(git rev-parse HEAD) | ||
git checkout master | ||
git reset --hard $LAST_BOOTSTRAP | ||
git fetch --prune bootstrap | ||
|
||
git fetch --prune bootstrap || exit | ||
git rebase bootstrap/master master | ||
git rebase master bootstrap/master | ||
|
||
# Generate the new Clang version | ||
$(dirname "$0")/generate-and-test.sh $LLVM_VERSION || exit | ||
$(dirname "$0")/generate-and-test.sh $LLVM_VERSION |