diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-10-08 19:50:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-10-08 19:50:54 +0000 |
commit | 8fedf48b3b154a2936f0c5e57bb1e0f9ab2e57b9 (patch) | |
tree | cdac473eca976e9e7b08e9f15b378bbdeece9589 /scm | |
parent | 05be2845943e0850121a60e463af608c2db3cf2a (diff) | |
download | ellinika-8fedf48b3b154a2936f0c5e57bb1e0f9ab2e57b9.tar.gz ellinika-8fedf48b3b154a2936f0c5e57bb1e0f9ab2e57b9.tar.bz2 |
Moved to /scm
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@200 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'scm')
-rw-r--r-- | scm/dictrans.scm | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/scm/dictrans.scm b/scm/dictrans.scm index ff99dea..bbb6058 100644 --- a/scm/dictrans.scm +++ b/scm/dictrans.scm @@ -1,3 +1,5 @@ +#! =GUILE_BINDIR=/guile -s +!# ;;;; This file is part of Ellinika ;;;; Copyright (C) 2004 Sergey Poznyakoff ;;;; @@ -78,10 +80,8 @@ ;;;; <X>string</X>* ;;;; <T ID="string" />* ;;;; </NODE> +;=UPDPATH= -(set! %load-path (cons "/usr/local/share/guile-sql" %load-path)) -(set! %load-path (cons "/home/gray/linguae/ellinika" %load-path)) - (use-modules (xmltools xmltrans) (sql) (ellinika xlat) @@ -103,6 +103,13 @@ (define debug-level 0) (define input-files '()) +(define sysconf-dir "=SYSCONFDIR=") + +;;; Load the site defaults +(let ((rc-file (string-append sysconf-dir "/" config-file-name))) + (if (file-exists? rc-file) + (load rc-file))) + (define (debug level . rest) (if (>= debug-level level) (begin @@ -350,8 +357,6 @@ ((not (current-node-get #:key)) (xmltrans:parse-error #f "K element is missing")) ((or (null? (current-node-get #:p-list)) (null? (null? (current-node-get #:xref)))) -; (display current-node)(newline) -; (display p-article)(newline) (xmltrans:parse-error #f "No articles and no cross references for the node")) (else (push-node current-node))) @@ -821,4 +826,9 @@ (exit 0) +;;;; Local variables: +;;;; mode: Scheme +;;;; buffer-file-coding-system: utf-8 +;;;; End: +
\ No newline at end of file |