Sha256: 5918114a044947be42efeebba781f533d1936945d827a0d2a4bddea7174c2fe3

Contents?: true

Size: 1.97 KB

Versions: 1

Compression:

Stored size: 1.97 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 = [""]
$helptopicsarray = [""]
$rwdjumplink = [""]
JumpLink = Hash.new("default")
require 'fileutils'

DistroName = "rwdwhypernote"

DistroVersion="0.16"

DistroTitle="#{DistroName}.dist"
load "configuration/#{DistroTitle}"
 
DistroName = "rwdhypernote"
DistroTitle = "#{DistroName}-#{DistroVersion}"
	
$progdir = File::expand_path( File.dirname(__FILE__))
results = " "

puts "creating #{DistroName} distribution files version #{DistroVersion}"
puts "cleaning conf files"
`tests/cleancnf.sh`
puts "moving up one directory"
Dir.chdir("..")


findcmd = "find #{DistroName}/_arx > /tmp/excludezip"
puts "#{findcmd}"
# `#{findcmd}`

FileUtils.rm_rf("#{DistroTitle}.zip")
zipcreatecmd = "zip  -r  #{DistroTitle}.zip #{DistroName} -x@/tmp/excludezip" 
puts "#{zipcreatecmd}"
 `#{zipcreatecmd}`
 tarcreatecmd = "tar --exclude-tag-all=++manifest --gzip -cf  #{DistroTitle}.tar.gz #{DistroName}"
puts "#{tarcreatecmd}"
`#{tarcreatecmd}`
 tarcreatecmd2 = "tar --exclude-tag-all=++manifest --bzip2 -cf  #{DistroTitle}.tar.bz2 #{DistroName}"
puts "#{tarcreatecmd2}"
`#{tarcreatecmd2}`

gemspecfilename = "#{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{#{DistroName}}\n")
fd.print("  s.version = \"#{DistroVersion}\"\n")
fd.print("  s.date = %q{#{year}-#{month}-#{daydate}}")
load "#{DistroName}/tests/gemspec"
fd.print($gemspecvar)
fd.close

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

puts `#{ListingCommand}`

print "Build finished\n"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rwdhypernote-0.16 tests/makedist.rb