Sha256: 6d7df037b5e0a47949390f5d29820b0933c2e5b83dea9aff80bd7974a265302a

Contents?: true

Size: 487 Bytes

Versions: 8

Compression:

Stored size: 487 Bytes

Contents

#!/usr/bin/env ruby

# Feed Makefile to this script to set all variables XXX_VER to latest versions

require 'English'

tty = $stdout.tty?

ARGF.each do |line|
  if (name = line[/^([A-Z]+)_VER *:= *.*/, 1])
    $stderr << name << ' := ' unless tty
    latest_version = `script/livecheck --bare #{name}`.strip
    abort unless $CHILD_STATUS.success?
    $stderr << latest_version << "\n" unless tty
    $stdout << "#{name}_VER := #{latest_version}\n"
  else
    $stdout << line
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
image_optim_pack-0.3.0.20161206 script/update_versions
image_optim_pack-0.3.0.20161108 script/update_versions
image_optim_pack-0.3.0.20161021 script/update_versions
image_optim_pack-0.3.0.20160927 script/update_versions
image_optim_pack-0.3.0.20160905 script/update_versions
image_optim_pack-0.3.0.20160812 script/update_versions
image_optim_pack-0.3.0.20160806 script/update_versions
image_optim_pack-0.3.0 script/update_versions