Files
sdk/tools/touch_version.py
T
iposva@google.com 63a4fc6523 - Add a script which touches the tools/VERSION file to ensure
version.cc and others will be rebuild.
Review URL: https://codereview.chromium.org//11028150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13586 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-11 22:16:28 +00:00

19 lines
614 B
Python

# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
#
# This python script "touches" the tools/VERSION file.
import os
import sys
# Change into the dart directory as we want to be able to access the VERSION file
# from a simple path.
runtime_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir)
os.chdir(runtime_src)
if __name__ == '__main__':
print 'Touching tools/VERSION.'
os.utime(os.path.join('tools', 'VERSION'), None)
sys.exit(0)