diff options
Diffstat (limited to 'Rantfile')
| -rw-r--r-- | Rantfile | 34 | 
1 files changed, 17 insertions, 17 deletions
| @@ -11,8 +11,8 @@ raise 'Please, use ruby1.8.4 or later.' if RUBY_VERSION < '1.8.4'   Rant is a Ruby 'ant' by Stefan Lang   For Setup/Installation SiSU uses either: - * Minero Aoki's setup.rb, provided along with SiSU, or  - * Rant which may be downloaded and installed from:  + * Minero Aoki's setup.rb, provided along with SiSU, or + * Rant which may be downloaded and installed from:       http://make.rubyforge.org/   * Name: Rant install/setup file for SiSU - Simple information Structuring Universe, Serialised information Structured Units @@ -110,10 +110,10 @@ def answer?(ask)    print ask + " ['yes', 'no' or 'quit']: "    resp=File.new('/dev/tty').gets.strip    #resp=gets.strip -  ans=if resp == 'yes': true -  elsif resp == 'no': false -  elsif resp =~/^quit|exit$/: exit -  else puts "[please type: 'yes', 'no' or 'quit']"  +  ans=if resp == 'yes'; true +  elsif resp == 'no'; false +  elsif resp =~/^quit|exit$/; exit +  else puts "[please type: 'yes', 'no' or 'quit']"      answer?(ask)    end  end @@ -129,17 +129,17 @@ def get_username    gets.strip  end  def chmod_file(place) -  if place =~/\/bin/: File.chmod(0755,place) +  if place =~/\/bin/; File.chmod(0755,place)    else                File.chmod(0644,place)    end  end  def chmod_util(place) -  if place =~/\/bin/: chmod(0755,place)  -  else                chmod(0644,place)  +  if place =~/\/bin/; chmod(0755,place) +  else                chmod(0644,place)    end  end                                                             #%% using a directory and its mapping -def setup_find_create(dir_get,dir_put)                     #primary,  +def setup_find_create(dir_get,dir_put)                     #primary,    Find.find("#@pwd/#{dir_get}") do |f|      stub=f.scan(/#@pwd\/#{dir_get}\/(\S+)/).join      place="#{dir_put}/#{stub}" @@ -223,7 +223,7 @@ def rant_system_info      host:             #@host      arch:             #{@dir[:arch]}      sitearch:         #{@dir[:sitearch]} -    +    Directories for installation      bin:                                          #{@dir[:bin]}      lib (site-ruby):                              #{@dir[:lib]}/#{@dir[:proj]}/#{Version} @@ -252,15 +252,15 @@ Commands quick start list    #{@proj[:name]} Rant Help:          (This Rantfile uses the same directory structure as setup.rb)      rant -T                # a task list, (generated by Rant) for more complete and up to date help      rant system            # system info used -   +    Quick start install and remove project #{@proj[:name]}     as root:      rant                   # install #{@proj[:name]} -   +      rant setup             # install #{@proj[:name]} (without additonal configuration and generating of test file) -   +      rant reinstall         # reinstall #{@proj[:name]} -   +      rant remove            # clobber/remove #{@proj[:name]}, current version: #{Version}      rant remove_package    # clobber/remove #{@proj[:name]}, all versions @@ -465,7 +465,7 @@ end  task :setup_vim do                                         #man    setup_find_create('data/vim',@dir[:vim]) if File.directory?('data/vim') #man pages  end -                                                           #%% post install  +                                                           #%% post install                                                             #%% clobber/remove tasks  task :remove_bin do    rm_r "#{@dir[:bin]}/#{@dir[:proj]}" if FileTest.file?("#{@dir[:bin]}/#{@dir[:proj]}") @@ -494,7 +494,7 @@ task :remove_package do    rm_r "#{@dir[:conf]}/#{@dir[:proj]}" if FileTest.directory?("#{@dir[:conf]}/#{@dir[:proj]}")  end  task :post_install_note do -  puts <<WOK  +  puts <<WOK    sisu markup samples are now packaged separately in sisu-markup-samples      visit: | 
