summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-05-15 21:55:24 +0200
committerTails developers <amnesia@boum.org>2012-05-16 13:30:41 +0200
commit3f0858935076122e752653c01fb366d987ee76b5 (patch)
tree62665eab389deed8460153829878a78aed524c41 /Rakefile
parent90abd5de80297c3131a7e5b2315d2a880310c71b (diff)
vagrant: Add support for clean-up build settings
As we now cache ikiwiki's work between builds, we add an option to force an initial clean-up.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 7c909d3..d227509 100644
--- a/Rakefile
+++ b/Rakefile
@@ -28,7 +28,7 @@ require 'tails_build_settings'
VAGRANT_PATH = File.expand_path('../vagrant', __FILE__)
# Environment variables that will be exported to the build script
-EXPORTED_VARIABLES = ['http_proxy', 'MKSQUASHFS_OPTIONS', 'TAILS_RAM_BUILD']
+EXPORTED_VARIABLES = ['http_proxy', 'MKSQUASHFS_OPTIONS', 'TAILS_RAM_BUILD', 'TAILS_CLEAN_BUILD']
# Let's save the http_proxy set before playing with it
EXTERNAL_HTTP_PROXY = ENV['http_proxy']
@@ -67,6 +67,9 @@ task :parse_build_options do
ENV['MKSQUASHFS_OPTIONS'] = '-comp gzip'
when 'defaultcomp'
ENV['MKSQUASHFS_OPTIONS'] = nil
+ # Clean-up settings
+ when 'cleanall'
+ ENV['TAILS_CLEAN_BUILD'] = '1'
end
end
end