| xah lee ( @ 2008-07-05 13:35:00 |
| Entry tags: | elisp, emacs, lisp |
Elisp Lesson: Make Download Archive Of A Website
Another emacs lisp tutorial.
SUMMARY
Create a downloadable version of a subdirectory of a website, so that all relative links in the downloadable version are changed into full URLs starting with a domain name, and internal directories or files are removed, etc.
Technically, this lesson gives a example of a text processing function that modifies a file, and this function is applied to hundreds of files. How to call OS's command line utilities to copy, delete, and zip directories. How a function is used to compute the correct link of a given file path and relative link.
HTML version with links and syntax coloring is at:
http://xahlee.org/emacs/make_download_c