Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Cleaning up..."
- rm -rf components/sync/driver
- git reset --hard sc-t
- echo "Moving sync_driver..."
- git mv components/sync_driver components/sync/driver
- # replace performs a string replacement for all files in the repo under the
- # current folder and is defined as:
- #
- # git grep -l "$1" | xargs sed -i "s/$1/$2/g"
- echo "Updating sync build files..."
- replace "components\/sync_driver" "components\/sync\/driver"
- replace "sync_driver\/resources" "sync\/driver\/resources"
- replace "driver:sync_driver\"" "driver\""
- replace "\/driver:test_support\"" ":test_support_sync_driver\""
- replace "\"\/\/components\/sync\/driver" "\"\/\/components\/sync"
- # sort_includes is a hacked version of cpplint/nitpick.py that sorts Java
- # imports in addition to C++ includes. It mostly just sorts within blocks of
- # includes, but can also insert newlines to create new blocks if it detects
- # different types of include (e.g. C++ vs C system headers).
- echo "Sorting includes..."
- git diff --name-only --diff-filter=ACMR sc-t | xargs sort_includes --quiet
- echo "Formatting..."
- git cl format
- echo "Commiting automated changes..."
- git co .git-blame-ignore-revs
- git commit --all -m "Automated changes." > /dev/null
- echo "Cherry-picking manual changes..."
- git cherry-pick e6acee2
- echo "Building..."
- build_chrome
- echo "Running presubmit checks..."
- git cl presubmit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement