File: linuxdoc

package info (click to toggle)
sdc 1.0.8beta-8
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 1,400 kB
  • ctags: 874
  • sloc: lisp: 8,120; ansic: 967; makefile: 671; perl: 136; sh: 50
file content (39 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;			     -*-scheme-*-

(message 1 "Loading linuxdoc." #\newline
	   "Please forgive, but this is a real hack yet.")

;(set! docpath-from-arguments 
;      `("/usr/lib/linuxdoc-sgml/dtd/%N.dtd"
;	,(string-append "/usr/lib/linuxdoc-sgml/rep/"
;			(cond
;			 ((equal? doc-output "html") "html")
;			 ((equal? doc-output "info") "info")
;			 ((equal? doc-output "latex") "latex2e")
;			 ((equal? doc-output "man") "groff")
;			 (else "latin1"))
;			"/%N:")
;	. ,docpath-from-arguments))

(set! docpath-from-arguments 
      (let* ((ld-dir "/usr/lib/linuxdoc-sgml")
	     (ldr-dir (string-append ld-dir "/rep/"))
	     (subdir
	      (cond
	       ((equal? doc-output "html") "html")
	       ((equal? doc-output "info") "info")
	       ((equal? doc-output "latex") "latex2e")
	       ((equal? doc-output "man") "groff")
	       (else "latin1"))))
	`(,(string-append ld-dir "/dtd/%N.dtd")
	  ,(apply
	    string-append
	    (map
	     (lambda (i)
	       (string-append i "/sgml/target/"
			      (if (equal? subdir "latin1")
				  "lout" subdir)
			      "/linuxdoc/%N:"))
	     *typeset-lib*))
	  ,(string-append ldr-dir subdir "/%N:")
	  . ,docpath-from-arguments)))