Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: tools/dartium/generate_dart_vm_version.py

Issue 2976303002: Remove Dartium for TIP of origin/master (Closed)
Patch Set: Updated Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dartium/generate_app/generate_cached_patches.html ('k') | tools/dartium/generate_patches.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dartium/generate_dart_vm_version.py
diff --git a/tools/dartium/generate_dart_vm_version.py b/tools/dartium/generate_dart_vm_version.py
deleted file mode 100755
index 4a166fcf9ae9e9aadd5882daa2c32b07c505032a..0000000000000000000000000000000000000000
--- a/tools/dartium/generate_dart_vm_version.py
+++ /dev/null
@@ -1,35 +0,0 @@
-import datetime
-import imp
-import os
-import subprocess
-import sys
-import time
-
-scriptpath = os.path.abspath(os.path.dirname(__file__))
-utils = imp.load_source('utils', os.path.join(scriptpath, '..', 'utils.py'))
-
-REVISION_FILE = 'src/chrome/browser/ui/webui/dartvm_revision.h'
-EXPIRATION_FILE = 'src/third_party/WebKit/Source/bindings/dart/ExpirationTimeSecsSinceEpoch.time_t'
-
-def updateFile(filename, content):
- if os.path.exists(filename):
- if file(filename, 'r').read() == content:
- return
- else:
- dir = os.path.dirname(filename)
- if not os.path.exists(dir):
- os.makedirs(dir)
- file(filename, 'w').write(content)
-
-def main():
- dart_version = utils.GetVersion()
- version_string = '#define DART_VM_REVISION "%s"\n' % dart_version.strip()
-
- updateFile(REVISION_FILE, version_string)
-
- expiration_date = datetime.date.today() + datetime.timedelta(days=365)
- updateFile(EXPIRATION_FILE,
- "%dLL\n" % time.mktime(expiration_date.timetuple()))
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « tools/dartium/generate_app/generate_cached_patches.html ('k') | tools/dartium/generate_patches.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698