From f73168a4ccecfbe189800f84f391c8f7e95645f8 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 3 Sep 2012 11:29:14 -0700 Subject: [PATCH] scons: remove helloworld plugin if out of date and make warning yellow not red --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 14033d41f..1b19f1828 100644 --- a/SConstruct +++ b/SConstruct @@ -1703,7 +1703,7 @@ if not HELP_REQUESTED: if plugin not in env['REQUESTED_PLUGINS']: plugin_path = os.path.join(env['MAPNIK_INPUT_PLUGINS_DEST'],'%s.input' % plugin) if os.path.exists(plugin_path): - color_print(1,"Notice: removing out of date plugin: '%s'" % plugin_path) + color_print(3,"Notice: removing out of date plugin: '%s'" % plugin_path) os.unlink(plugin_path) # Build the c++ rundemo app if requested @@ -1757,3 +1757,8 @@ if not HELP_REQUESTED: # if requested, build the sample input plugins if env['SAMPLE_INPUT_PLUGINS']: SConscript('plugins/input/templates/helloworld/build.py') + elif 'install' in COMMAND_LINE_TARGETS: + plugin_path = os.path.join(env['MAPNIK_INPUT_PLUGINS_DEST'],'hello.input') + if os.path.exists(plugin_path): + color_print(3,"Notice: removing out of date plugin: '%s'" % plugin_path) + os.unlink(plugin_path)