From 4dd30e8ad1e3c0719dc2608278fe7ed5ccf3b627 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 5 Mar 2013 21:41:50 -0500 Subject: v4: sysenv, set default output (directory layout) type where none configured * (also turned off reporting where imagemagick & graphicsmagick not installed) --- data/doc/sisu/CHANGELOG_v4 | 3 +++ lib/sisu/v4/sysenv.rb | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4 index 4f3c3a67..12a289a4 100644 --- a/data/doc/sisu/CHANGELOG_v4 +++ b/data/doc/sisu/CHANGELOG_v4 @@ -32,6 +32,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.10.orig.tar.xz .tex file is almost certainly produced by sisu, this will be a sisu packaging, texlive dependency issue, preventing its conversion to pdf (Closes: #617359) +* v4: sysenv, set default output (directory layout) type where none configured + (also turned off reporting where imagemagick & graphicsmagick not installed) + %% 4.0.9.orig.tar.xz (2013-02-22:07/5) http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.9 http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.9-1 diff --git a/lib/sisu/v4/sysenv.rb b/lib/sisu/v4/sysenv.rb index 17acc872..c3f69c85 100644 --- a/lib/sisu/v4/sysenv.rb +++ b/lib/sisu/v4/sysenv.rb @@ -470,9 +470,11 @@ module SiSU_Env or ((defined? @rc['output_structure']['by_filename']) \ && @rc['output_structure']['by_filename'] ==true) :filename - else #recheck current default + else #set default :language end + else #set default + :language end end def dump? @@ -789,14 +791,14 @@ module SiSU_Env program='identify' program_ref="\n\t\tsee " found=(program_found?(program)) ? true : false - STDERR.puts "\t*WARN* #{program} is not installed #{program_ref}" unless found + #STDERR.puts "\t*WARN* #{program} is not installed #{program_ref}" unless found found end def graphicksmagick #graphicsmagick is a image manipulation program program='gm' program_ref="\n\t\tsee " found=(program_found?(program)) ? true : false - STDERR.puts "\t*WARN* #{program} is not installed #{program_ref}" unless found + #STDERR.puts "\t*WARN* #{program} is not installed #{program_ref}" unless found found end def well_formed? #tidy - check for well formed xml xhtml etc. @@ -3487,6 +3489,7 @@ WOK class InfoVersion