| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Update Dartium DEPS automatically. | 3 # Update Dartium DEPS automatically. |
| 4 | 4 |
| 5 from datetime import datetime, timedelta | 5 from datetime import datetime, timedelta |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import re | 8 import re |
| 9 from subprocess import Popen, PIPE | 9 from subprocess import Popen, PIPE |
| 10 import sys | 10 import sys |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 # | 22 # |
| 23 # (c) Checkout dart/tools/dartium (with this script): | 23 # (c) Checkout dart/tools/dartium (with this script): |
| 24 # > svn co https://dart.googlecode.com/svn/branches/bleeding_edge/dart/tool
s/dartium dartium_tools | 24 # > svn co https://dart.googlecode.com/svn/branches/bleeding_edge/dart/tool
s/dartium dartium_tools |
| 25 # | 25 # |
| 26 # (d) If your home directory is remote, consider redefining it for this shell/s
cript: | 26 # (d) If your home directory is remote, consider redefining it for this shell/s
cript: |
| 27 # > cp -R $HOME/.subversion /usr/local/google/home/$USER | 27 # > cp -R $HOME/.subversion /usr/local/google/home/$USER |
| 28 # > export HOME=/usr/local/google/home/$USER | 28 # > export HOME=/usr/local/google/home/$USER |
| 29 # | 29 # |
| 30 # (e) Test by running (Ctrl-C to quit): | 30 # (e) Test by running (Ctrl-C to quit): |
| 31 # > ./dartium_tools/update_deps.py | 31 # > ./dartium_tools/update_deps.py |
| 32 # > ./dartium_tools/update_deps.py --target=multivm | |
| 33 # > ./dartium_tools/update_deps.py --target=clank | 32 # > ./dartium_tools/update_deps.py --target=clank |
| 34 # > ./dartium_tools/update_deps.py --target=integration | 33 # > ./dartium_tools/update_deps.py --target=integration |
| 35 # | 34 # |
| 36 # (f) Run periodical update: | 35 # (f) Run periodical update: |
| 37 # > while true; do ./dartium_tools/update_deps.py --force ; sleep 300 ; don
e | 36 # > while true; do ./dartium_tools/update_deps.py --force ; sleep 300 ; don
e |
| 38 | 37 |
| 39 ######################################################################## | 38 ######################################################################## |
| 40 # Repositories to auto-update | 39 # Repositories to auto-update |
| 41 ######################################################################## | 40 ######################################################################## |
| 42 | 41 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 if not options.force: | 261 if not options.force: |
| 263 print "Ready to push; press Enter to continue or Control-C to abort..." | 262 print "Ready to push; press Enter to continue or Control-C to abort..." |
| 264 sys.stdin.readline() | 263 sys.stdin.readline() |
| 265 print run_cmd(['git', 'commit', '-F', 'commit_log.txt']) | 264 print run_cmd(['git', 'commit', '-F', 'commit_log.txt']) |
| 266 print run_cmd(['git', 'push', repo_branch_parts[0], repo_branch_parts[1]]) | 265 print run_cmd(['git', 'push', repo_branch_parts[0], repo_branch_parts[1]]) |
| 267 print "Done." | 266 print "Done." |
| 268 | 267 |
| 269 | 268 |
| 270 if '__main__' == __name__: | 269 if '__main__' == __name__: |
| 271 main() | 270 main() |
| OLD | NEW |