[geany/geany-plugins] 87a31c: Add --no-scm configure option to bypass SCM detection

Enrico Tröger git-noreply at xxxxx
Sun Apr 13 08:50:04 UTC 2014


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 13 Apr 2014 08:50:04 UTC
Commit:      87a31c20cd902ed0e9823ae2287ad5acac1e1072
             https://github.com/geany/geany-plugins/commit/87a31c20cd902ed0e9823ae2287ad5acac1e1072

Log Message:
-----------
Add --no-scm configure option to bypass SCM detection


Modified Paths:
--------------
    build/wafutils.py
    wscript

Modified: build/wafutils.py
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -183,6 +183,9 @@ def get_plugins():
 
 
 def get_git_rev(conf):
+    if conf.options.no_scm:
+        return
+
     if not os.path.isdir('.git'):
         return
 


Modified: wscript
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -203,6 +203,9 @@ def options(opt):
     # execute plugin specific option code
     opt.recurse(plugins, mandatory=False)
 
+    # Options
+    opt.add_option('--no-scm', action='store_true', default=False,
+        help='Disable SCM detection [default: No]', dest='no_scm')
     # Paths
     opt.add_option('--libdir', type='string', default='',
         help='object code libraries', dest='libdir')



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list