aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-06-26 15:44:15 -0400
committerRalph Amissah <ralph@amissah.com>2011-06-26 22:40:25 -0400
commit408bf6b65fcbdecd8cbcc810e1fe9f7be95da5a1 (patch)
tree82fd9cc775d45ce4532a237747734eacd94a3b0c /lib/sisu/v3/sysenv.rb
parentv3: manpage (sysenv), move output; line-breaks within object (diff)
v3: info (texinfo) (sysenv), move output; line-breaks within object
* backslashes & line-breaks * place under web server directory * info tool setting prompt * sysenv, accommodate info page changes
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r--lib/sisu/v3/sysenv.rb50
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb
index 5134b6c2..e89d77c5 100644
--- a/lib/sisu/v3/sysenv.rb
+++ b/lib/sisu/v3/sysenv.rb
@@ -2286,6 +2286,12 @@ WOK
? @rc['program_select']['man'] \
: 'nroff -man' #'nroff -man' #'groff -man -Tascii'
end
+ def texinfo
+ ((defined? @rc['program_select']['info_viewer']) \
+ && @rc['program_select']['info_viewer'] =~/\S\S+/) \
+ ? @rc['program_select']['info_viewer'] \
+ : 'pinfo -f' #'pinfo -f' 'info' 'tkinfo'
+ end
def file_encoding
is=(defined? @rc['program_set']['file_encoding']) ? @rc['program_set']['encoding'] : ''
(is.nil? || is==true) ? 'encoding' : is
@@ -3262,6 +3268,12 @@ WOK
fn=base_filename.manpage
file=make_file(path,fn)
end
+ def texinfo
+ path=output_path.texinfo.dir
+ make_path(path)
+ fn=base_filename.texinfo
+ file=make_file(path,fn)
+ end
def hash_digest
path=output_path.hash_digest.dir
make_path(path)
@@ -3466,6 +3478,15 @@ WOK
end
self
end
+ def texinfo
+ def dir
+ output_path.texinfo.dir + '/' + base_filename.texinfo
+ end
+ def rel
+ output_path.texinfo.rel + '/' + base_filename.texinfo
+ end
+ self
+ end
def manifest
def dir
output_path.manifest.dir + '/' + base_filename.manifest
@@ -3630,6 +3651,14 @@ WOK
@md.fnb + '.' + @md.opt.f_pth[:lng_is] + '.' + ft
end
end
+ def texinfo
+ ft='info'
+ if @env.output_dir_structure.by_language_code?
+ @md.fnb + '.' + ft
+ else
+ @md.fnb + '.' + @md.opt.f_pth[:lng_is] + '.' + ft
+ end
+ end
def hash_digest
ft='.txt'
if @env.output_dir_structure.by_language_code?
@@ -4237,6 +4266,27 @@ WOK
end
self
end
+ def texinfo
+ def ft
+ 'texinfo'
+ end
+ def dir
+ set_path(ft).dir.ab
+ end
+ def url
+ set_path(ft).url.ab
+ end
+ def rel
+ set_path(ft).rel.ab
+ end
+ def rcp
+ set_path(ft).rcp.ab
+ end
+ def rel_sm
+ set_path(ft).rel_sm.ab
+ end
+ self
+ end
def sitemaps
def ft
'sitemaps'