Function: htmlfontify-copy-and-link-dir
htmlfontify-copy-and-link-dir is an autoloaded, interactive and
byte-compiled function defined in htmlfontify.el.gz.
Signature
(htmlfontify-copy-and-link-dir SRCDIR DSTDIR &optional F-EXT L-EXT)
Documentation
Trawl SRCDIR and write fontified-and-hyperlinked output in DSTDIR.
F-EXT and L-EXT specify values for hfy-extn and hfy-link-extn.
You may also want to set hfy-page-header and hfy-page-footer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/htmlfontify.el.gz
;;;###autoload
(defun htmlfontify-copy-and-link-dir (srcdir dstdir &optional f-ext l-ext)
"Trawl SRCDIR and write fontified-and-hyperlinked output in DSTDIR.
F-EXT and L-EXT specify values for `hfy-extn' and `hfy-link-extn'.
You may also want to set `hfy-page-header' and `hfy-page-footer'."
(interactive "D source directory: \nD output directory: ")
;;(message "htmlfontify-copy-and-link-dir")
(setq srcdir (directory-file-name srcdir))
(setq dstdir (directory-file-name dstdir))
(let ((source-files "SETME: list of source files, relative to srcdir")
(tr-cache (assoc srcdir hfy-tags-rmap))
(hfy-extn (or f-ext ".html"))
(hfy-link-extn (or l-ext ".html")))
;; oops, forgot to load etags for srcdir:
(if tr-cache nil
(message "autoload of tags cache")
(hfy-load-tags-cache srcdir)
(setq tr-cache (assoc srcdir hfy-tags-rmap)))
;; clear out the old cache:
(clrhash (cadr tr-cache))
(hfy-make-directory dstdir)
(setq source-files (hfy-list-files srcdir))
(dolist (file source-files)
(hfy-copy-and-fontify-file srcdir dstdir file))
(hfy-subtract-maps srcdir)
(hfy-save-kill-buffers (hfy-prepare-index srcdir dstdir) dstdir)
(hfy-save-kill-buffers (hfy-prepare-tag-map srcdir dstdir) dstdir) ))