diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-14 21:29:55 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-14 21:29:55 +0100 |
commit | 69e8c05210e249e679b259cb843a5e708273e9be (patch) | |
tree | 065b61391a561df11711106e4767d6d0b2a7225e /lib/sisu/v0/share_src.rb | |
parent | remote, (put, get) in single file; embedded content, posted locally and remot... (diff) |
shared markup source output moved to own common src directory
Diffstat (limited to 'lib/sisu/v0/share_src.rb')
-rw-r--r-- | lib/sisu/v0/share_src.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sisu/v0/share_src.rb b/lib/sisu/v0/share_src.rb index 53e19f1c..3d2bf8db 100644 --- a/lib/sisu/v0/share_src.rb +++ b/lib/sisu/v0/share_src.rb @@ -65,19 +65,20 @@ module SiSU_Markup @opt=opt @env=SiSU_Env::Info_env.new(@opt.fns) stub=@opt.fnb.gsub(/~[a-z]+$/,'') - @output_path="#{@env.path.output}/#{stub}" + @output_path="#{@env.path.output}/src" + #@output_path="#{@env.path.output}/#{stub}" end def read tell=SiSU_Screen::Ansi.new(@opt.cmd,'Share Document Source!',@opt.fns) tell.green_hi_blue unless @opt.cmd =~/q/ tell=SiSU_Screen::Ansi.new(@opt.cmd,"Copy sisu markup file to output directory","#{@opt.fns} -> #@output_path") tell.warn unless @opt.cmd =~/q/ - File.mkpath(@env.path.output) unless FileTest.directory?(@env.path.output) + File.mkpath("#{@env.path.output}/src") unless FileTest.directory?("#{@env.path.output}/src") File.mkpath(@output_path) unless FileTest.directory?(@output_path) if FileTest.directory?(@output_path) unless @opt.fns =~/\.ssm$/; cp(@opt.fns,@output_path) else - req=@opt.fns.gsub(/(.+)?\.ssm$/,'\1.composite.sst') + req=@opt.fns.gsub(/(.+?\.ssm)$/,'\1.sst') file="#{@env.path.composite_file}/#{@opt.fnb}._sst" if FileTest.file?(file); cp(file,"#@output_path/#{req}") else print "did not find #{file} to copy" |