/usr/lib/s9fes/find-help-path.scm is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ; Scheme 9 from Empty Space, Function Library
; By Nils M Holm, 2010
; See the LICENSE file of the S9fES package for terms of use
;
; (find-help-path) ==> string | #f
;
; Returns the directory in which the online help pages are stored
; of #F when the pages cannot be located.
;
; (Example): (find-help-path) ==> "/usr/local/share/s9fes/help"
(require-extension sys-unix)
(load-from-library "string-split.scm")
(define (find-help-path)
(let loop ((dirs (string-split #\: *library-path*)))
(if (null? dirs)
#f
(let ((path (string-append (car dirs) "/help")))
(if (and (file-exists? path)
(sys:stat-directory? path))
path
(loop (cdr dirs)))))))
|