aboutsummaryrefslogtreecommitdiffhomepage
path: root/Rantfile
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2007-06-14 10:21:17 +0100
committerRalph Amissah <ralph.amissah@gmail.com>2007-06-14 10:21:17 +0100
commitb130d967b295b548d837ea5f603a6b0fec7a08a8 (patch)
tree7f56fde49ae81ec8161d43239ce50af8674d8d49 /Rantfile
parentgitignore (diff)
sisu-0.54.0 (minor additions to syntax, indent range extended) from upstream
* indent levels (1-9) added [previously two levels] done for plaintext, html, xml, odf, latex/pdf [minor syntax addition (_3 - _9), version number change] * bullet indent levels (1-9) added [previously two levels] done for plaintext, html, odf, latex/pdf [minor syntax addition (_3* - _9*), version number change] * url decoration, open close, default angle brackets <http://url> * fixes, some line-breaking for plaintext (and text groups for) odf and xml * css, modifications for extended indents in html and xml [sisu -CC (for update)] * vim syntax highlighter updated to take account of extended indent range * rant installer minor changes for future ruby * conversion script in data/sisu/conf/convert/sisu_convert
Diffstat (limited to 'Rantfile')
-rw-r--r--Rantfile34
1 files changed, 17 insertions, 17 deletions
diff --git a/Rantfile b/Rantfile
index ff64da3f..66567653 100644
--- a/Rantfile
+++ b/Rantfile
@@ -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: