mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:42:11 +00:00
e33d023fa0
doesn't show these formatting changes as diffs. Change-Id: I69ccbf4adabc66d88371cece785a2c1bce60f133 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138962 Reviewed-by: Ryan Macnak <rmacnak@google.com>
26 lines
916 B
Plaintext
26 lines
916 B
Plaintext
# Copyright (c) 2016, 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.
|
|
|
|
_dart_root = rebase_path("..")
|
|
|
|
template("create_timestamp_file") {
|
|
assert(defined(invoker.path), "Must specify 'path'")
|
|
assert(defined(invoker.output), "Must specify 'output'")
|
|
path = invoker.path
|
|
output = invoker.output
|
|
action(target_name) {
|
|
list_args = [ path ]
|
|
if (defined(invoker.pattern)) {
|
|
list_args += [ invoker.pattern ]
|
|
}
|
|
files = exec_script("$_dart_root/tools/list_dart_files.py",
|
|
[ "absolute" ] + list_args,
|
|
"list lines")
|
|
inputs = [ "$_dart_root/tools/list_dart_files.py" ] + files
|
|
outputs = [ output ]
|
|
script = "$_dart_root/tools/create_timestamp_file.py"
|
|
args = [ rebase_path(output) ]
|
|
}
|
|
}
|