diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 00:18:06 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 00:18:06 +0000 |
commit | ccd07800092c2f6337decffb62c9eb30c1d946b2 (patch) | |
tree | c3bcd3baf8d64a7e1051ab004a514c811a121519 /tools/generate_stubs | |
parent | b5fcc0e80cbfbe21c952bf6abca772b813f9862b (diff) | |
download | chromium_src-ccd07800092c2f6337decffb62c9eb30c1d946b2.zip chromium_src-ccd07800092c2f6337decffb62c9eb30c1d946b2.tar.gz chromium_src-ccd07800092c2f6337decffb62c9eb30c1d946b2.tar.bz2 |
Resubmit - Roll DEPS to include changes to FFmpeg build system
TBR=fbarchrd
BUG=57266
TEST=Tree is green. ARM ffmpeg can be loaded.
Review URL: http://codereview.chromium.org/3555004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/generate_stubs')
-rwxr-xr-x | tools/generate_stubs/generate_stubs.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/generate_stubs/generate_stubs.py b/tools/generate_stubs/generate_stubs.py index 7263c1e..97c8106 100755 --- a/tools/generate_stubs/generate_stubs.py +++ b/tools/generate_stubs/generate_stubs.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Copyright (c) 2010 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. @@ -344,7 +344,16 @@ def ExtractModuleName(infile_path): The module name as a string. """ basename = os.path.basename(infile_path) - return os.path.splitext(basename)[0] + + # This loop continously removes suffixes of the filename separated by a "." + # character. + while 1: + new_basename = os.path.splitext(basename)[0] + if basename == new_basename: + break + else: + basename = new_basename + return basename def ParseSignatures(infile): |