blob: 6ff6b424fde60af2fd62d82ec7ee701bbc4e0e14 (
about) (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
;*=====================================================================*/
;* serrano/prgm/project/skribe/src/bigloo/param.bgl */
;* ------------------------------------------------------------- */
;* Author : Manuel Serrano */
;* Creation : Sat Jul 26 14:03:15 2003 */
;* Last change : Wed Mar 3 10:18:48 2004 (serrano) */
;* Copyright : 2003-04 Manuel Serrano */
;* ------------------------------------------------------------- */
;* Skribe parameters */
;* ------------------------------------------------------------- */
;* Implementation: @label param@ */
;* bigloo: @path ../common/param.scm@ */
;*=====================================================================*/
;*---------------------------------------------------------------------*/
;* The module */
;*---------------------------------------------------------------------*/
(module skribe_param
(import skribe_configure)
(export *skribe-verbose*
*skribe-warning*
*skribe-path*
*skribe-bib-path*
*skribe-source-path*
*skribe-image-path*
*load-rc*
*skribe-src*
*skribe-dest*
*skribe-engine*
*skribe-variants*
*skribe-chapter-split*
*skribe-ref-base*
*skribe-rc-directory*
*skribe-rc-file*
*skribe-auto-mode-alist*
*skribe-auto-load-alist*
*skribe-preload*
*skribe-precustom*
*skribebib-auto-mode-alist*))
;*---------------------------------------------------------------------*/
;* *skribe-verbose* ... */
;*---------------------------------------------------------------------*/
(define *skribe-verbose* 0)
;*---------------------------------------------------------------------*/
;* *skribe-warning* ... */
;*---------------------------------------------------------------------*/
(define *skribe-warning* 5)
;*---------------------------------------------------------------------*/
;* *skribe-path* ... */
;*---------------------------------------------------------------------*/
(define *skribe-path* (skribe-default-path))
;*---------------------------------------------------------------------*/
;* *skribe-bib-path* ... */
;*---------------------------------------------------------------------*/
(define *skribe-bib-path* '("."))
;*---------------------------------------------------------------------*/
;* *skribe-source-path* ... */
;*---------------------------------------------------------------------*/
(define *skribe-source-path* '("."))
;*---------------------------------------------------------------------*/
;* *skribe-image-path* ... */
;*---------------------------------------------------------------------*/
(define *skribe-image-path* '("."))
;*---------------------------------------------------------------------*/
;* *load-rc* ... */
;*---------------------------------------------------------------------*/
(define *load-rc* #t)
;*---------------------------------------------------------------------*/
;* *skribe-src* ... */
;*---------------------------------------------------------------------*/
(define *skribe-src* '())
;*---------------------------------------------------------------------*/
;* *skribe-dest* ... */
;*---------------------------------------------------------------------*/
(define *skribe-dest* #f)
;*---------------------------------------------------------------------*/
;* *skribe-engine* ... */
;*---------------------------------------------------------------------*/
(define *skribe-engine* 'html)
;*---------------------------------------------------------------------*/
;* *skribe-variants* */
;*---------------------------------------------------------------------*/
(define *skribe-variants* '())
;*---------------------------------------------------------------------*/
;* *skribe-chapter-split* ... */
;*---------------------------------------------------------------------*/
(define *skribe-chapter-split* '())
;*---------------------------------------------------------------------*/
;* *skribe-ref-base* ... */
;*---------------------------------------------------------------------*/
(define *skribe-ref-base* #f)
;*---------------------------------------------------------------------*/
;* *skribe-rc-directory* ... */
;* ------------------------------------------------------------- */
;* The "runtime command" file directory. */
;*---------------------------------------------------------------------*/
(define *skribe-rc-directory*
(let ((home (getenv "HOME"))
(host (hostname)))
(let loop ((host (if (not (string? host)) (getenv "HOST") host)))
(if (string? host)
(let ((home/host (string-append home "/.skribe" host)))
(if (and (file-exists? home/host) (directory? home/host))
home/host
(if (string=? (suffix host) "")
(let ((home/def (make-file-name home ".skribe")))
(cond
((and (file-exists? home/def)
(directory? home/def))
home/def)
(else
home)))
(loop (prefix host)))))))))
|