Kouhei Sutou
null+****@clear*****
Wed Jan 28 21:45:42 JST 2015
Kouhei Sutou 2015-01-28 21:45:42 +0900 (Wed, 28 Jan 2015) New Revision: cb0ee668b8873b0341b236d181625f993470e7f4 https://github.com/pgroonga/pgroonga/commit/cb0ee668b8873b0341b236d181625f993470e7f4 Message: Support source upload/download Modified files: .gitignore Rakefile Modified: .gitignore (+1 -0) =================================================================== --- .gitignore 2015-01-28 21:33:09 +0900 (49a89df) +++ .gitignore 2015-01-28 21:45:42 +0900 (e1bd936) @@ -3,3 +3,4 @@ *.tar.gz /regression.* /results/ +/pakcages/source/ Modified: Rakefile (+21 -0) =================================================================== --- Rakefile 2015-01-28 21:33:09 +0900 (f951035) +++ Rakefile 2015-01-28 21:45:42 +0900 (f34a771) @@ -1,6 +1,7 @@ # -*- ruby -*- package = "pgroonga" +rsync_base_path = "packages �� packages.groonga.org:public" def find_version(package) control_content = File.read("#{package}.control") @@ -33,3 +34,23 @@ task :tag do "-m", "#{package} #{version} has been released!!!") sh("git", "push", "--tags") end + +packages_dir = "packages" + +namespace :source do + rsync_path = "#{rsync_base_path}/source/#{package}" + source_dir = "#{packages_dir}/source" + + directory source_dir + + desc "Download sources" + task :download => source_dir do + sh("rsync", "-avz", "--progress", "#{rsync_path}/", source_dir) + end + + desc "Upload sources" + task :upload => [archive_name, source_dir] do + cp(archive_name, source_dir) + sh("rsync", "-avz", "--progress", "--delete", "#{source_dir}/", rsync_path) + end +end -------------- next part -------------- HTML����������������������������...Download