mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
25 lines
496 B
Python
25 lines
496 B
Python
# Copyright 2015 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""
|
|
This script writes a time stamp.
|
|
Has one argument - time stamp file. Usage:
|
|
python stamp.py path/to/file
|
|
"""
|
|
|
|
import sys
|
|
|
|
def WriteStampFile(stamp_file):
|
|
with open(stamp_file, "w"):
|
|
pass
|
|
|
|
|
|
def main(argv):
|
|
stamp_file = argv[1]
|
|
WriteStampFile(stamp_file)
|
|
return 0
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main(sys.argv))
|