summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 3ce3a44..b9bd2e0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -15,8 +15,10 @@ Rake::PackageTask.new("COMP325-1", DateTime.now.strftime("%y%m").to_i) do |packa
package.package_files.add INCLUDED_FILES
end
-task :pdf do
- sh 'node ./node_modules/.bin/mdpdf README.md'
+task(:pdf) { sh 'node ./node_modules/.bin/mdpdf README.md' }
+task(:clean) { sh 'rm -fr pkg' }
+task default: [:clean, :pdf, :repackage] do
+ Dir['pkg/*.tar.gz'].each do |file|
+ FileUtils.mv file, file.gsub('-', '_')
+ end
end
-
-task default: [:pdf, :repackage]