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

Unified Diff: tools/generate_stubs/generate_stubs.py

Issue 3518002: Roll DEPS to include changes to FFmpeg build system (Closed)
Patch Set: comments fixed Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/generate_stubs/generate_stubs.py
diff --git a/tools/generate_stubs/generate_stubs.py b/tools/generate_stubs/generate_stubs.py
index 7263c1ef13738f603e626308efe66e63be0c2764..97c8106bd66c814df05c1bc5802bdab7cbc2de8e 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):
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698