From fc5d0a22c60c1bfa0c351a1e6c171d75a340a7e4 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 29 Jun 2019 19:30:52 +0800 Subject: [PATCH] Separate the preparation part from the `build.rake`. --- tasks/{build.rake => prep.rake} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename tasks/{build.rake => prep.rake} (94%) mode change 100755 => 100644 diff --git a/tasks/build.rake b/tasks/prep.rake old mode 100755 new mode 100644 similarity index 94% rename from tasks/build.rake rename to tasks/prep.rake index 864b1f9..8199497 --- a/tasks/build.rake +++ b/tasks/prep.rake @@ -18,8 +18,8 @@ def os ) end -desc 'Generate the HTML pages' -task :build do +desc 'Preparation for Generating the HTML Pages' +task :prep do cd 'content/' do if os == :linux sh 'grep -l -r ecx.images-amazon.com | sort | uniq | xargs --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"' @@ -37,6 +37,4 @@ task :build do cd 'public' do sh 'rm -rf *' end - - sh 'hugo -e staging -v' end