Sha256: 30188779cd90a2c805e5554624d437ab62bb5f9f63da62ebd6ec5da96e793dd2

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

#!/usr/bin/ruby -w
#***********************************************************************
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
#* Copyright (c) 2004-2008 by Steven Gibson. All Rights Reserved.
#* at "smalllinux@gmail.com".
#***********************************************************************/
$progdir =""
$tinkerhelpaboutarray = [""]
$tinkerdocumentsarray = [""]
$testharnessarray = [""]
JumpLink = Hash.new("default")
$rwdjumplink= [""]
require 'fileutils'
DistroName = "rwdwshell"
DistroVersion="1.04"
load "configuration/#{DistroName}-#{DistroVersion}.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("..")


FileUtils.rm_rf("#{DistroTitle}.zip")
zipcreatecmd = "zip  -r #{DistroTitle}.zip *" 
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

1 entries across 1 versions & 1 rubygems

Version Path
bigtinker-0.95 tests/makedist-rwdwshell.rb