diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-19 20:29:36 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-19 20:29:36 +0100 |
commit | 70a56ab6c2c6bcc668f5c4f3667361f7d72d1809 (patch) | |
tree | aa4b2229fdf2b9078d3f939372447c9892fcbc47 /lib/sisu/v0/urls.rb | |
parent | Merge branch 'upstream' into debian/sid (diff) | |
parent | mostly paths for shared markup source (txt and pod), also... (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/urls.rb')
-rw-r--r-- | lib/sisu/v0/urls.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/sisu/v0/urls.rb b/lib/sisu/v0/urls.rb index b9b1e0ec..ca1b6928 100644 --- a/lib/sisu/v0/urls.rb +++ b/lib/sisu/v0/urls.rb @@ -192,7 +192,7 @@ module SiSU_urls tell.grey_title_hi unless @opt.cmd =~/q/ tell=SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@env.path.output}/#@fnb") tell.flow unless @opt.cmd =~/q/ - m=/.+\/(\S+)/m + m=/.+\/(?:src\/)?(\S+)/im # m=/.+?\/(?:src\/)?([^\/]+)$/im # m=/.+\/(\S+)/m @pwd_stub="#@webserv_url"[m,1] @u.each do |x,y| if @opt.fns =~ @m_regular @@ -234,12 +234,18 @@ module SiSU_urls tell.result unless @opt.cmd =~/q/ @opt.cmd.gsub!(/P[iu]/,'') end - if x=~/^[sS]/ \ + if x=~/^s/ \ + and @opt.cmd =~/s/ + tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#@browser #@webserv_url/src/#{y}") + tell.result unless @opt.cmd =~/q/ + @opt.cmd.gsub!(/I/,'') + end + if x=~/^S/ \ and @opt.cmd =~/[sS]/ zipfile=if @opt.fns =~/\.ssm\.sst$/; y.gsub(/(?:\~\S{2,3})?(\.ssm\.sst\.zip)$/,'.ssm.zip') else y.gsub(/(?:\~\S{2,3})?(\.sst\.zip)$/,'\1') end - tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#@browser #@webserv_url/src/#{y}") + tell=SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#@browser #@webserv_url/pod/#{y}") tell.result unless @opt.cmd =~/q/ @opt.cmd.gsub!(/I/,'') end |