Merge pull request #33 from kazu634/modify-macos-rake-build-task

buildタスクをMac OS向けに修正する
This commit is contained in:
Kazuhiro MUSASHI 2019-06-16 17:24:20 +07:00 committed by GitHub
commit dc5454b89b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

10
tasks/build.rake Normal file → Executable file
View File

@ -24,12 +24,14 @@ task :build do
if os == :linux 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"' 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"'
sh 'grep -l -r "http://www.amazon.co.jp/exec" | sort | uniq | xargs --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"' sh 'grep -l -r "http://www.amazon.co.jp/exec" | sort | uniq | xargs --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"'
else
sh 'grep -l -r ecx.images-amazon.com | sort | uniq | xargs d -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"'
sh 'grep -l -r "http://www.amazon.co.jp/exec" | sort | uniq | xargs sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"'
end
sh 'find . -type f -name "*.mde" | xargs --no-run-if-empty rm || true' sh 'find . -type f -name "*.mde" | xargs --no-run-if-empty rm || true'
sh 'find . -type f -name "*.md-e" | xargs --no-run-if-empty rm || true' sh 'find . -type f -name "*.md-e" | xargs --no-run-if-empty rm || true'
else
sh 'grep -l -r ecx.images-amazon.com . | sort | uniq | xargs d -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"'
sh 'grep -l -r "http://www.amazon.co.jp/exec" . | sort | uniq | xargs sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"'
sh 'find . -type f -name "*.mde" | xargs rm || true'
sh 'find . -type f -name "*.md-e" | xargs rm || true'
end
end end
cd 'public' do cd 'public' do