aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/share_src.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/share_src.rb')
-rw-r--r--lib/sisu/v0/share_src.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/sisu/v0/share_src.rb b/lib/sisu/v0/share_src.rb
index 53e19f1c..c098f282 100644
--- a/lib/sisu/v0/share_src.rb
+++ b/lib/sisu/v0/share_src.rb
@@ -65,20 +65,21 @@ 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')
- file="#{@env.path.composite_file}/#{@opt.fnb}._sst"
+ req=@opt.fns.gsub(/(.+?\.ssm)$/,'\1.sst')
+ file="#{@env.path.composite_file}/#{@opt.fnb}.ssm.sst"
if FileTest.file?(file); cp(file,"#@output_path/#{req}")
else print "did not find #{file} to copy"
end