aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-06-08 22:23:26 -0400
committerRalph Amissah <ralph@amissah.com>2011-06-08 22:23:46 -0400
commita011db38da1999b9eb137927b47d21568ab8b078 (patch)
tree83677236dda3c9aeed5b7368beb9402f9dee852e
parentv3: manifest, fix a full name (diff)
v3: html, texpdf, syslink to default, adjusted & made similar
-rw-r--r--data/doc/sisu/CHANGELOG_v33
-rw-r--r--lib/sisu/v3/html.rb9
-rw-r--r--lib/sisu/v3/texpdf.rb4
3 files changed, 12 insertions, 4 deletions
diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3
index 73960544..291be8df 100644
--- a/data/doc/sisu/CHANGELOG_v3
+++ b/data/doc/sisu/CHANGELOG_v3
@@ -27,6 +27,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.0.12.orig.tar.gz
* manifest, fix a full name
+ * html, index.html syslink, remove and remake syslink
+ * texpdf, index.html syslink, made similar
+
* help
* --help language, provides list of available languages (ISO 639-1 code (as
varied by po4a) & name)
diff --git a/lib/sisu/v3/html.rb b/lib/sisu/v3/html.rb
index d586c25d..d77d3df6 100644
--- a/lib/sisu/v3/html.rb
+++ b/lib/sisu/v3/html.rb
@@ -652,10 +652,13 @@ WOK
## only works properly for directory_structure_by language, fix
unless FileTest.file?("#{@file.output_path.html.dir}/index.html")
pwd_set=Dir.pwd
+ idx_lnk=@file.base_filename.html_segtoc
+ mlnk='index.html'
Dir.chdir(@file.output_path.html.dir)
- system("
- ln -s #{@file.base_filename.html_segtoc} index.html
- ")
+ system("
+ rm #{mlnk}
+ ln -s #{idx_lnk} #{mlnk}
+ ")
Dir.chdir(pwd_set)
end
end
diff --git a/lib/sisu/v3/texpdf.rb b/lib/sisu/v3/texpdf.rb
index eff07f19..918e00a2 100644
--- a/lib/sisu/v3/texpdf.rb
+++ b/lib/sisu/v3/texpdf.rb
@@ -249,11 +249,13 @@ module SiSU_TeX
"#{@md.fnb}.landscape.pdf"
else 'landscape.pdf'
end
+ pwd_set=Dir.pwd
+ Dir.chdir(@md.file.output_path.pdf.dir)
system("
- cd #{@md.file.output_path.pdf.dir}
rm #{mklnk}
ln -s #{pdf_l} #{mklnk}
")
+ Dir.chdir(pwd_set)
end
else
SiSU_Screen::Ansi.new(@md.opt.cmd,"FILE NOT FOUND: << #{@md.fns} >> - requested latex system processing skipped").warn