[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/scripts
From: Michael Pyne <michael.pyne () kdemail ! net>
Date: 2006-04-30 21:52:03
Message-ID: 1146433923.881837.6947.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 535985 by mpyne:
There is an option "no-rebuild-on-fail" that disables kdesvn-build trying a couple of times to
rebuild a module. Enable this by default when using /trunk KDE, since CMake seems better
at building reliable the first time (if it was going to build at all).
M +18 -0 kdesvn-build
--- trunk/KDE/kdesdk/scripts/kdesvn-build #535984:535985
@@ -5131,6 +5131,23 @@
};
}
+# This subroutine sets up the default $package_opts{'global'} options. They
+# are normally hardcoded, this function is a way to change the default based
+# on user input. For example, we can change the value of options based on
+# the use-stable-kde option.
+sub setup_option_defaults()
+{
+ if(not get_option('global', 'use-stable-kde'))
+ {
+ # Should be empty if user hasn't reset the option.
+ if(get_option('global', 'no-rebuild-on-fail') eq '')
+ {
+ debug "Building modules only once by default (cmake).";
+ set_option('global', 'no-rebuild-on-fail', 1);
+ }
+ }
+}
+
# Script starts.
# Use some exception handling to avoid ucky error messages
@@ -5140,6 +5157,7 @@
# doing.
process_arguments(); # Process --help, --install, etc. first.
read_options(); # If we're still here, read the options
+ setup_option_defaults(); # Setup default options, based on user input
initialize_environment(); # Initialize global env vars.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic