aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/env.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/env.org')
-rw-r--r--org/env.org67
1 files changed, 8 insertions, 59 deletions
diff --git a/org/env.org b/org/env.org
index 28df5017..248cf044 100644
--- a/org/env.org
+++ b/org/env.org
@@ -257,7 +257,6 @@ module SiSU_Clear
and @md.sfx_src =~/ss[ftsumc]/
@env_out_root=@env.path.output
@env_out="#{@env.path.output}/#{@fnb}"
- @@publisher='SiSU http://www.jus.uio.no/sisu'
@env_pdf="#{@env_out_root}/pdf"
end
end
@@ -774,7 +773,7 @@ module SiSU_Info_Db
def port #PGPORT
((defined? @rc['db']['postgresql']['port']) \
&& ( @rc['db']['postgresql']['port'] =~/\d+/ \
- || @rc['db']['postgresql']['port'].is_a?(Fixnum))) \
+ || @rc['db']['postgresql']['port'].is_a?(Integer))) \
? @rc['db']['postgresql']['port']
: (@defaults[:postgresql_port])
end
@@ -5944,10 +5943,10 @@ WOK
: "#{md.opt.sisu_data_dir?}/sisu/image"
images=%W[bullet_09.png arrow_next_red.png arrow_prev_red.png arrow_up_red.png]
images.each do |i| #move to avoid repeated tests
- if FileTest.file?("#{src}/#{i}")
+ if Pathname#exist?("#{src}/#{i}")
FileUtils::cp("#{src}/#{i}","#{pth}/#{i}") \
- unless FileTest.file?("#{pth}/#{i}")
- else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}]}
+ unless Pathname#exist?("#{pth}/#{i}")
+ else STDERR.puts %{\t*WARN* did not find image - "#{i}" [#{__FILE__}:#{__LINE__}] [#{src}/#{i}]}
end
end
pth
@@ -7731,6 +7730,7 @@ module SiSU_Sys_Call
when /pdflatex/
"#{texpdf} -interaction=#{mode} #{@input} #{tell}\n"
end
+ #puts texpdf_cmd
system(texpdf_cmd)
else STDERR.puts "\t*WARN* none of the following programs are installed: #{@texpdf}"
end
@@ -8568,7 +8568,7 @@ module SiSU_Info_About
sisu --txt --html --epub --odt --pdf --sqlite --manpage --texinfo --concordance --qrcode --verbose sisu.ssm
cd -
See output produced, or see man pages: man sisu
- <http://www.sisudoc.org/> <http://www.jus.uio.no/sisu/>
+ <https://sisudoc.org> <https://git.sisudoc.org/sisu>
WOK
end
end
@@ -8579,57 +8579,6 @@ __END__
* document header
#+NAME: sisu_document_header
-#+BEGIN_SRC text
-encoding: utf-8
-- Name: SiSU
-
- - Description: documents, structuring, processing, publishing, search
- se
-
- - Author: Ralph Amissah
- <ralph.amissah@gmail.com>
-
- - Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2019,
- 2020, 2021, Ralph Amissah,
- All Rights Reserved.
-
- - License: GPL 3 or later:
-
- SiSU, a framework for document structuring, publishing and search
-
- Copyright (C) Ralph Amissah
-
- This program is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the Free
- Software Foundation, either version 3 of the License, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- more details.
-
- You should have received a copy of the GNU General Public License along with
- this program. If not, see <http://www.gnu.org/licenses/>.
-
- If you have Internet connection, the latest version of the GPL should be
- available at these locations:
- <http://www.fsf.org/licensing/licenses/gpl.html>
- <http://www.gnu.org/licenses/gpl.html>
-
- <http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
-
- - SiSU uses:
- - Standard SiSU markup syntax,
- - Standard SiSU meta-markup syntax, and the
- - Standard SiSU object citation numbering and system
-
- - Homepages:
- <http://www.sisudoc.org>
-
- - Git
- <https://git.sisudoc.org/projects/>
- <https://git.sisudoc.org/projects/?p=software/sisu.git;a=summary>
- <https://git.sisudoc.org/projects/?p=markup/sisu-markup-samples.git;a=summary>
+#+BEGIN_SRC emacs-lisp
+<<./sisu_version_info_and_doc_header_including_copyright_and_license.org:sisu_doc_header_including_copyright_and_license()>>
#+END_SRC