• Home
  • Raw
  • Download

Lines Matching +full:update +full:- +full:commit +full:- +full:hash

3 # llvm now lives in a mono-repo along with clang, libc, lldb and a whole bunch
8 # * The llvm10-clean branch is fetched and checked out.
10 # * The third_party/llvm-10.0/llvm is replaced with the latest LLVM version.
12 # * The original branch is checked out again, and a merge from llvm10-clean to
16 STAGING_DIR="/tmp/llvm-10-update"
17 CLEAN_BRANCH="llvm10-clean"
19 TARGET_DIR="${THIRD_PARTY_DIR}/llvm-10.0/llvm"
23 SWIFTSHADER_HEAD=`git rev-parse HEAD`
26 if ! git diff --quiet HEAD; then
31 # Clone or update the staging directory
32 if [[ -d "$STAGING_DIR" ]]; then
38 git remote add origin https://github.com/llvm/llvm-project.git
40 echo "/llvm/lib" >> .git/info/sparse-checkout
41 echo "/llvm/include" >> .git/info/sparse-checkout
44 LLVM_HEAD=`git log HEAD -n 1 --pretty=format:'%h'`
47 if [[ -d "$TARGET_DIR" ]]; then
48 # Look for the last update change.
49 …LAST_TARGET_UPDATE=`git log --grep="^llvm-10-update: [0-9a-f]\{9\}$" -n 1 --pretty=format:'%h' ${T…
50 if [[ ! -z "$LAST_TARGET_UPDATE" ]]; then
51 # Get the LLVM commit hash from the update change.
52 … LAST_SOURCE_UPDATE=`git log $LAST_TARGET_UPDATE -n 1 | grep -oP "llvm-10-update: \K([0-9a-f]{9})"`
58 # Gather list of changes since last update
60 LLVM_CHANGE_LOG=`git log $LAST_SOURCE_UPDATE..$LLVM_HEAD --pretty=format:' %h %s'`
66 COMMIT_MSG=`echo -e "Update LLVM 10 to ${LLVM_HEAD}\n\n${LLVM_CHANGE_LOG}Commands:\n third_party/u…
68 # Switch to the llvm-10-clean branch.
72 # Delete the target directory. We're going to re-populate it.
73 rm -fr "$TARGET_DIR"
75 # Update SwiftShader's $TARGET_DIR with a clean copy of latest LLVM
76 mkdir -p "$TARGET_DIR"
77 cp -r "$SOURCE_DIR/." "$TARGET_DIR"
79 git commit -m "$COMMIT_MSG"
80 MERGE_SOURCE=`git log HEAD -n 1 --pretty=format:'%h'`
82 # Push llvm-10-clean branch.
88 # Update SwiftShader's $TARGET_DIR with a clean copy of latest LLVM
89 git merge -m "$COMMIT_MSG" "$MERGE_SOURCE"
92 rm -fr "$STAGING_DIR"