clean up hello.input if stale
This commit is contained in:
parent
05f010a43b
commit
62434041e3
1 changed files with 8 additions and 5 deletions
13
SConstruct
13
SConstruct
|
@ -1887,11 +1887,14 @@ if not HELP_REQUESTED:
|
||||||
# if requested, build the sample input plugins
|
# if requested, build the sample input plugins
|
||||||
if env['SAMPLE_INPUT_PLUGINS']:
|
if env['SAMPLE_INPUT_PLUGINS']:
|
||||||
SConscript('plugins/input/templates/helloworld/build.py')
|
SConscript('plugins/input/templates/helloworld/build.py')
|
||||||
elif 'install' in COMMAND_LINE_TARGETS:
|
else:
|
||||||
plugin_path = os.path.join(env['MAPNIK_INPUT_PLUGINS_DEST'],'hello.input')
|
if 'install' in COMMAND_LINE_TARGETS:
|
||||||
if os.path.exists(plugin_path):
|
plugin_path = os.path.join(env['MAPNIK_INPUT_PLUGINS_DEST'],'hello.input')
|
||||||
color_print(3,"Notice: removing out of date plugin: '%s'" % plugin_path)
|
if os.path.exists(plugin_path):
|
||||||
os.unlink(plugin_path)
|
color_print(3,"Notice: removing out of date plugin: '%s'" % plugin_path)
|
||||||
|
os.unlink(plugin_path)
|
||||||
|
if os.path.exists('plugins/input/templates/hello.input'):
|
||||||
|
os.unlink('plugins/input/templates/hello.input')
|
||||||
|
|
||||||
# update linux project files
|
# update linux project files
|
||||||
if env['PLATFORM'] == 'Linux':
|
if env['PLATFORM'] == 'Linux':
|
||||||
|
|
Loading…
Add table
Reference in a new issue