diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-09-24 07:45:01 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-09-24 07:45:01 -0400 |
commit | 344270faca3b8179c5d45e0abede70df841635c7 (patch) | |
tree | ba04042a70ba426c172467e830e827a7b67a0d90 /lib/sisu/v3/sysenv.rb | |
parent | v3: hub, processing options, remove cruft (diff) |
v3: info files, fix output; remote, include info file & manpage (when selected)
Diffstat (limited to 'lib/sisu/v3/sysenv.rb')
-rw-r--r-- | lib/sisu/v3/sysenv.rb | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/lib/sisu/v3/sysenv.rb b/lib/sisu/v3/sysenv.rb index 79ae61af..ad831489 100644 --- a/lib/sisu/v3/sysenv.rb +++ b/lib/sisu/v3/sysenv.rb @@ -2998,6 +2998,14 @@ WOK && FileTest.file?(@f.place_file.txt.dir) inp << @f.place_file.txt.rel end + if @opt.cmd =~/i/ \ + && FileTest.file?(@f.place_file.manpage.dir) + inp << @f.place_file.manpage.rel + end + if @opt.cmd =~/I/ \ + && FileTest.file?(@f.place_file.info.dir) + inp << @f.place_file.info.rel + end if @opt.cmd =~/N/ \ && FileTest.file?(@f.place_file.hash_digest.dir) inp << @f.place_file.hash_digest.rel @@ -3375,6 +3383,12 @@ WOK fn=base_filename.texinfo file=make_file(path,fn) end + def info + path=output_path.texinfo.dir + make_path(path) + fn=base_filename.info + file=make_file(path,fn) + end def hash_digest path=output_path.hash_digest.dir make_path(path) @@ -3594,6 +3608,15 @@ WOK end self end + def info + def dir + output_path.texinfo.dir + '/' + base_filename.info + end + def rel + output_path.texinfo.rel + '/' + base_filename.info + end + self + end def manifest def dir output_path.manifest.dir + '/' + base_filename.manifest @@ -3758,7 +3781,7 @@ WOK @md.fnb + '.' + @md.opt.f_pth[:lng_is] + '.' + ft end end - def texinfo + def info ft='info' if @env.output_dir_structure.by_language_code? @md.fnb + '.' + ft @@ -3766,6 +3789,14 @@ WOK @md.fnb + '.' + @md.opt.f_pth[:lng_is] + '.' + ft end end + def texinfo + ft='texinfo' + 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? |