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

Side by Side Diff: chrome/installer/linux/flock_make_package.py

Issue 1311543003: Add Linux build packaging targets to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
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
8 #
9 # This script does a flock to serialize, and then runs the given shell
10 # script with the given parameters.
11 #
12 # Usage:
13 # flock_make_package.py <lockfile> <shell_script> [<args_to_script>*]
Lei Zhang 2015/08/28 23:17:02 Might be nice to use this with GYP as well for con
14
15 import subprocess
16 import sys
17
18 if len(sys.argv) < 3:
19 print "Incorrect args."
20 sys.exit(1)
21 subprocess.call(["flock", "--", sys.argv[1], "bash"] + sys.argv[2:])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698