summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-25 14:37:11 -0600
committermo <mo.khan@gmail.com>2019-05-25 14:37:11 -0600
commit902dbc52d91bd771ca98f329f036fadb9988d018 (patch)
tree5aca2eb501724a54f32860dab398bf6029745a45
parentf12ddbca4fc878ec3fcc7eda49f2d810d4a27fba (diff)
rename final file to match requirements
-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]