1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Linux package generation is serialized because it creates large numbers of
6 # temporary files that can overload the /tmp partition on the builders.
7 # See https://codereview.chromium.org/243019
9 # This script does a flock to serialize, and then runs the given shell
10 # script with the given parameters.
13 # flock_make_package.py <lockfile> <shell_script> [<args_to_script>*]
19 print "Incorrect args."
21 subprocess
.call(["flock", "--", sys
.argv
[1], "bash"] + sys
.argv
[2:])