Sha256: 19b8346d482893b506542165e3b98b91acd55321f2937f35785ad9bf979bfee6

Contents?: true

Size: 1.54 KB

Versions: 3

Compression:

Stored size: 1.54 KB

Contents

#!/usr/bin/ruby -w
#***********************************************************************
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
#* at "steven@superant.com".
#***********************************************************************/
$progdir =""
$tinkerhelpaboutarray = [""]
$tinkerdocumentsarray = [""]
$testharnessarray = [""]
$rwdjumplink = [""]
JumpLink = Hash.new("default")
require 'fileutils'
DistroName = "rwdwcalc"
DistroVersion="0.63"
load "configuration/#{DistroName}.dist"


DistroTitle="#{DistroName}-#{DistroVersion}"


	
$progdir = File::expand_path( File.dirname(__FILE__))
results = " "

puts "creating #{DistroName} distribution files version #{DistroVersion}"

#puts "moving up one directory"
#Dir.chdir("..")
findcmd = "find _arx > /tmp/excludezip"
puts "#{findcmd}"
`#{findcmd}`

FileUtils.rm_rf("#{DistroTitle}.zip")
zipcreatecmd = "zip  -r #{DistroTitle}.zip * -x@/tmp/excludezip" 
puts "#{zipcreatecmd}"
 `#{zipcreatecmd}`

gemspecfilename = "rwdzip#{DistroTitle}.gemspec"
tobject = Time.now
year = tobject.year.to_s
month = tobject.mon.to_s
daydate = tobject.day.to_s

fd = File.open(gemspecfilename,"w")
fd.print("Gem::Specification.new do |s|\n")
fd.print("  s.name = %q{rwdzip#{DistroName}}\n")
fd.print("  s.version = \"#{DistroVersion}\"\n")
fd.print("  s.date = %q{#{year}-#{month}-#{daydate}}")
load "tests/gemspec-#{DistroName}"
fd.print($gemspecvar)
fd.close

ListingCommand = "ls -1 -s -h rwdzip#{DistroTitle}*"

puts `#{ListingCommand}`

print "Build finished\n"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bigtinker-0.96 tests/makedist-rwdwcalc.rb
bigtinker-0.97 tests/makedist-rwdwcalc.rb
bigtinker-0.98 tests/makedist-rwdwcalc.rb