[gobject-introspection] scanner: Readd support for --strip-prefix
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Readd support for --strip-prefix
- Date: Fri, 10 Sep 2010 19:14:40 +0000 (UTC)
commit 920512de3fb9bfefffadb454308d66eca9c9ebd4
Author: Colin Walters <walters verbum org>
Date: Fri Sep 10 15:01:54 2010 -0400
scanner: Readd support for --strip-prefix
We still really do want people to port to --identifier-prefix
(and --symbol-prefix if necessary) because there's no ambiguity.
Before the way we were casefolding was just a terrible mess.
giscanner/scannermain.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 609bdc1..556e3c9 100644
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -246,8 +246,9 @@ def scanner_main(args):
libraries = options.libraries
if options.strip_prefix:
- _error("""Option --strip-prefix has been replaced;
-see --identifier-prefix and --symbol-prefix.""")
+ print """g-ir-scanner: warning: Option --strip-prefix has been deprecated;
+see --identifier-prefix and --symbol-prefix."""
+ options.identifier_prefixes.append(options.strip_prefix)
filenames = []
for arg in args:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]