From fae668e5e5595c6e2b52cd6855b296937d996d3b Mon Sep 17 00:00:00 2001
From: Ralph Amissah <ralph@amissah.com>
Date: Mon, 28 May 2012 05:30:42 -0400
Subject: v3: hub, share markup source (--source) not available for composite
 files

* suggest creating a sisupod instead
---
 lib/sisu/v3/hub.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'lib')

diff --git a/lib/sisu/v3/hub.rb b/lib/sisu/v3/hub.rb
index daa75166..a2902075 100644
--- a/lib/sisu/v3/hub.rb
+++ b/lib/sisu/v3/hub.rb
@@ -358,8 +358,12 @@ p "#{__LINE__}:#{__FILE__}" if @opt.act[:maintenance][:set] ==:on
               end
             end
             if @opt.act[:share_source][:set]==:on
-              requires('share_src')                        # -s     share_src.rb
-              SiSU_Markup::Source.new(@opt).read
+              if @opt.fno =~/\.ssm$/
+                SiSU_Screen::Ansi.new(@opt.cmd,'WARNING: share text source (--source) not available for composite files (.ssm),', 'composite (.ssm) source documents may be shared as a sisupod (--sisupod) (.txz)').warn unless @opt.cmd =~/q/
+              else
+                requires('share_src')                        # -s     share_src.rb
+                SiSU_Markup::Source.new(@opt).read
+              end
             end
             if @opt.act[:qrcode][:set]==:on                #% --qrcode, -Q
               requires('qrcode')                           # -Q     qrcode.rb
-- 
cgit v1.2.3