Sha256: a1a1763e453356da241036f12c6b3de568d6498b2f3e701bef0d9145512fe5a6

Contents?: true

Size: 1.28 KB

Versions: 93

Compression:

Stored size: 1.28 KB

Contents

# This is something of a work in progress. Unfortunately,
# many of the projects that use the packaging repo carry
# version files with hard-coded versions, and many of these
# are in completely disparate formats.
#
# This task attempts to automate the updating of this file
# with the version to be packaged, but given the many version
# file formats in use, doing so cleanly is difficult. With
# any luck, going forward some of these projects will move
# away from maintaining hard-coded versions in source.
# However, if this effort loses momentum, we may end up
# revisiting this task and improving it substantially,
# and/or standardizing the expected version file format.
namespace :package do
  desc "Set and commit the version in #{Pkg::Config.version_file}, requires VERSION."
  task :versionset do
    Pkg::Util.check_var('VERSION', ENV['VERSION'])
    Pkg::Util::Version.versionbump
    Pkg::Util::Git.commit_file(Pkg::Config.version_file, "update to #{ENV['VERSION']}")
  end

  task :versionbump, :workdir do |t, args|
    Pkg::Util::Version.versionbump(args.workdir)
  end

  # A set of tasks for printing the version
  [:version, :rpmversion, :rpmrelease, :debversion, :release].each do |task|
    task "#{task}" do
      $stdout.puts Pkg::Config.instance_variable_get("@#{task}")
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
packaging-0.106.0 tasks/version.rake
packaging-0.105.0 tasks/version.rake
packaging-0.104.0 tasks/version.rake
packaging-0.103.0 tasks/version.rake
packaging-0.102.0 tasks/version.rake
packaging-0.101.0 tasks/version.rake
packaging-0.99.82 tasks/version.rake
packaging-0.99.81 tasks/version.rake
packaging-0.99.80 tasks/version.rake
packaging-0.99.79 tasks/version.rake
packaging-0.99.78 tasks/version.rake
packaging-0.99.77 tasks/version.rake
packaging-0.88.77 tasks/version.rake
packaging-0.99.76 tasks/version.rake
packaging-0.99.75 tasks/version.rake
packaging-0.99.74 tasks/version.rake
packaging-0.99.73 tasks/version.rake
packaging-0.99.72 tasks/version.rake
packaging-0.99.71 tasks/version.rake
packaging-0.99.70 tasks/version.rake