Sha256: 6a5c05f9e53203cd8c2238ce83416d72a0387562eeee99b587e893bd1d9fbaaa

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

#!/usr/bin/env ratch

# update version stamps

# You can change these via the command line.
version = commandline['version'] || release.version
status  = commandline['status']  || release.status

# Update ROLLRC file.

main :stamp do
  if version != release.version or status != release.status
    build release.file
  end
end

#

file release.file do
  w = ''
  w << "#{release.name} #{version} #{status} #{Time.now.strftime('%Y-%m-%d')}"
  w << " #{release.default}" if release.default
  w << "\n"
  w << release.libpath.join("\n")

  if dryrun?
    puts release.file + ":"
    puts w
  else
    File.open(release.file, 'w'){|f| f << w}
    puts "#{release.file} updated."
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
facets-2.2.1 task/stamp
tmail-1.2.1 script/stamp