#!/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". #***********************************************************************/ require 'fileutils' load 'configuration/rwdgutenberg.dist' $progdir = File::expand_path( File.dirname(__FILE__)) results = " " puts "creating rwdgutenberg distribution files version #{RwdGutenbergVersion}" puts "cleaning conf files" `tests/cleancnf.sh` puts "moving up one directory" Dir.chdir("..") zipcreatecmd = "zip -r rwdgutenberg-#{RwdGutenbergVersion}.zip rwdgutenberg" puts "#{zipcreatecmd}" `#{zipcreatecmd}` tarcreatecmd = "tar --gzip -cf rwdgutenberg-#{RwdGutenbergVersion}.tar.gz rwdgutenberg" puts "#{tarcreatecmd}" `#{tarcreatecmd}` tarcreatecmd2 = "tar --bzip2 -cf rwdgutenberg-#{RwdGutenbergVersion}.tar.bz2 rwdgutenberg" puts "#{tarcreatecmd2}" `#{tarcreatecmd2}` print Dir["rwdgutenberg*.{gz,bz2,deb,gem}"]