Sha256: 261ad980e696de8603ab3f22eb11eda46f478d007b00ec503403937b56473037
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
#!/usr/bin/env ratch # update version stamps # You can change these via the command line. version = commandline['version'] || rollrc.version status = commandline['status'] || rollrc.status # Update ROLLRC file. main :stamp do if version != rollrc.version or status != rollrc.status build rollrc.file end end # file rollrc.file do w = '' w << "#{rollrc.name} #{version} #{status} #{Time.now.strftime('%Y-%m-%d')}" w << " #{rollrc.default}" if rollrc.default w << "\n" w << rollrc.libpath.join("\n") if dryrun? puts rollrc.file + ":" puts w else File.open(rollrc.file, 'w'){|f| f << w} puts "#{rollrc.file} updated." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.4.0 | lib/ratch/toolset/ruby/stamp |
ratch-0.4.1 | lib/ratch/toolset/ruby/stamp |