From 6b436cd50664c83996e7595e0b400125f700db71 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 28 Jul 2009 11:42:44 -0400 Subject: html book index, batch processing fix, re-initialize variable after use --- lib/sisu/v1/html_segments.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/sisu/v1/html_segments.rb b/lib/sisu/v1/html_segments.rb index d874063a..66e04800 100644 --- a/lib/sisu/v1/html_segments.rb +++ b/lib/sisu/v1/html_segments.rb @@ -201,6 +201,7 @@ module SiSU_HTML_seg Seg_output.new(@md,@output_seg_file,@@seg,@minitoc,'endnotes').output elsif @@seg_name_html[tracking-1] =~/idx/ Seg_output.new(@md,@output_seg_file,@@seg,@minitoc,'idx').output + @@seg[:idx]=[] else p 'check' end Seg.new.reinitialise -- cgit v1.2.3 From 10cf38d0cdef8df2b13a6b7ab9f4e1f9439145dc Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 31 Jul 2009 23:25:11 -0400 Subject: sysenv sha256 fix, set pwd --- lib/sisu/v1/sysenv.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/sisu/v1/sysenv.rb b/lib/sisu/v1/sysenv.rb index c3c2a0ee..8d4636c1 100644 --- a/lib/sisu/v1/sysenv.rb +++ b/lib/sisu/v1/sysenv.rb @@ -612,6 +612,7 @@ module SiSU_Env program='openssl' program_ref="\n\t\tsha digest requested" if program_found?(program) + pwd=Dir.pwd Dir.chdir(File.dirname(filename)) dgst=%x{openssl dgst -sha256 #{File.basename(filename)}}.strip #use file name without file path Dir.chdir(pwd) -- cgit v1.2.3