Kouhei Sutou
null+****@clear*****
Mon Feb 9 11:56:49 JST 2015
Kouhei Sutou 2015-02-09 11:56:49 +0900 (Mon, 09 Feb 2015) New Revision: 70eb1ffa52a0fc45553dc7dcd1f81f66ee825b82 https://github.com/pgroonga/pgroonga/commit/70eb1ffa52a0fc45553dc7dcd1f81f66ee825b82 Message: Add package:version:update task It will work. Modified files: Rakefile Modified: Rakefile (+19 -6) =================================================================== --- Rakefile 2015-02-09 11:50:11 +0900 (9c4785d) +++ Rakefile 2015-02-09 11:56:49 +0900 (876c205) @@ -21,11 +21,10 @@ def find_version(package) end end -def launchpad_uploader_pgp_key - env = "LAUNCHPAD_UPLOADER_PGP_KEY" - key = ENV[env] - raise "Specify #{env} environment variable" if key.nil? - key +def env_value(name) + value = ENV[name] + raise "Specify #{name} environment variable" if value.nil? + value end version = find_version(package) @@ -181,7 +180,21 @@ postgresql-devel "--source-archive", archive_name, "--code-names", "utopic", "--debian-directory", "packages/debian", - "--pgp-sign-key", launchpad_uploader_pgp_key) + "--pgp-sign-key", env_value("LAUNCHPAD_UPLOADER_PGP_KEY")) + end + end + + namespace :version do + desc "Update versions" + task :update do + ruby("#{groonga_source_dir}/misc/update-latest-release.rb", + package, + env_value("OLD_RELEASE"), + env_value("OLD_RELEASE_DATE"), + version, + env_value("NEW_RELEASE_DATE"), + "packages/debian/changelog", + "packages/yum/postgresql-pgroonga.spec.in") end end end -------------- next part -------------- HTML����������������������������...Download