Separate the preparation part from the `build.rake`.

This commit is contained in:
Kazuhiro MUSASHI 2019-06-29 19:30:52 +08:00
parent 335757fb5c
commit fc5d0a22c6
1 changed files with 2 additions and 4 deletions

6
tasks/build.rake → tasks/prep.rake Executable file → Normal file
View File

@ -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