2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 from driver_tools import Run, ParseArgs
7 from driver_env import env
9 EXTRA_ENV = { 'ARGS': '' }
10 # just pass all args through to 'ARGS' and eventually to the underlying tool
11 PATTERNS = [ ( '(.*)', "env.append('ARGS', $0)") ]
19 ParseArgs(argv, PATTERNS)
20 Run('"${RANLIB}" --plugin=${GOLD_PLUGIN_SO} ${ARGS}')
21 # only reached in case of no errors
24 def get_help(unused_argv):
26 Usage: %s [options] archive
27 Generate an index to speed access to archives
29 @<file> Read options from <file>
30 -t Update the archive's symbol map timestamp
31 -h --help Print this help message
32 -v --version Print version information
33 """ % env.getone('SCRIPT_NAME')