Rscons.clean() removes any directories it created if they are empty

This commit is contained in:
josh committed 2013-09-18 21:17:42 -04:00
1 parent 770a22250a
commit 5c6239ea6d
6 files changed
+53 -3

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ module Rscons
# Return the name of the target or false on failure.
def standard_build(short_cmd_string, target, command, sources, env, cache)
unless cache.up_to_date?(target, command, sources)
FileUtils.mkdir_p(File.dirname(target))
cache.mkdir_p(File.dirname(target))
FileUtils.rm_f(target)
return false unless env.execute(short_cmd_string, command)
cache.register_build(target, command, sources)