[geany/geany] 9f294c: Add --no-scm configure option to bypass SCM detection

Enrico Tröger git-noreply at xxxxx
Sun Apr 13 08:43:55 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:43:55 UTC
Commit:      9f294c25c316ef7165f1f0f75882f3ba8be9d608
             https://github.com/geany/geany/commit/9f294c25c316ef7165f1f0f75882f3ba8be9d608

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


Modified Paths:
--------------
    wscript

Modified: wscript
6 files changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -313,6 +313,9 @@ def options(opt):
     opt.load('compiler_cxx')
     opt.load('intltool')
 
+    # Option
+    opt.add_option('--no-scm', action='store_true', default=False,
+        help='Disable SCM detection [default: No]', dest='no_scm')
     # Features
     opt.add_option('--disable-plugins', action='store_true', default=False,
         help='compile without plugin support [default: No]', dest='no_plugins')
@@ -714,6 +717,9 @@ def _define_from_opt(conf, define_name, opt_value, default_value, quote=1):
 
 
 def _get_git_rev(conf):
+    if conf.options.no_scm:
+        return
+
     if not os.path.isdir('.git'):
         return
 



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


More information about the Commits mailing list