Skip to content

Commit

Permalink
modify release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed Dec 29, 2018
1 parent 9248205 commit 4e0ca99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tdiary/tasks/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ begin
def fetch_files( repo )
Dir.chdir("tmp") do
rm_rf repo rescue true
sh "git clone --depth 10 https://github.com/tdiary/#{repo}.git #{repo}"
sh "git clone https://github.com/tdiary/#{repo}.git #{repo}"
end
end

Expand Down Expand Up @@ -64,7 +64,7 @@ begin
end

mv repo, dest
sh "tar --format=ustar zcf #{dest}.tar.gz #{dest}"
sh "tar zcf #{dest}.tar.gz --format=ustar #{dest}"
mv dest, repo
TARBALLS << "#{dest}.tar.gz"
end
Expand All @@ -80,7 +80,7 @@ begin
mv d, "tdiary-core/theme/" rescue true
end
mv "tdiary-core", "tdiary#{suffix}"
sh "tar --format=ustar zcf tdiary-full#{suffix}.tar.gz tdiary#{suffix}"
sh "tar zcf tdiary-full#{suffix}.tar.gz --format=ustar tdiary#{suffix}"
TARBALLS << "tdiary-full#{suffix}.tar.gz"
rm_rf "tdiary#{suffix}"
REPOS.each {|repo| rm_rf repo rescue true }
Expand Down

0 comments on commit 4e0ca99

Please sign in to comment.