html_cfg.sh 0.0.3, (c) 2008 by Patrick Boylan not to be confused with cfg2html.pl . You can modify, redistribute, and pretty much do whatever you want with this script under the terms of the GNU General Public License, Version 2, or the new one if you prefer. If you didn't get a copy of the GNU GPL with this program, look in /usr/share/common-licenses/ on Debian-based systems, or http://gnu.org/licenses/gpl-2.0.txt . If the URL should fail for some reason, they have a search engine. Again, this shouldn't be confused with Vlad Harchev's cfg2html.pl , which produces much nicer HTML anyway. My goals are different. I wanted a set of hyperlinked config files which are easily navigated from within Lynx -- so, via the e)dit command, Lynx becomes its own best configuration editor. You should be able to find the settings you want to change, and change them more easily this way. With that in mind, I wanted the results to look as similar as possible in a web browser or text editor. The plaintext view might not be pretty, but I've tried to keep it legible. CHANGES: 0.0.3 * I *think* it's a POSIX-compliant /bin/sh script now. * DOCTYPE declaration was omitted, because I wasn't sure what DTD to put it under. WDG validator validates it now [except for those Lynx-specific TAB elements]. * Uses separate for loops to generate the HTML pages and main index. Adds some unnecessary reptition, but it should be easier to read. * Fixed some of those multi-line echoes, so they won't screw up the indentation [purely cosmetic; also for legibility]. 0.0.2 * Tried doing more in memory, less with temp-files, but that didn't seem to speed things up any. * Rearranged the `case "$foo" in' thing so the most likely possiblities are tested first. Went from a five minute job to like, a minute on my old 233 mHz Compaq Armada. * Went back to mostly temp-files. * Commented the hell out of it. 0.0.1 * You mean, it actually did something this time? Whoah...
Source || License || Back to lynx_cfg.html
Dedicated to the memory of Cheetah the cat, and her invaluable help with the Bash scripting language. [Okay, 31337 H4x0R k!tty computing tip here: What she would actually do was fall asleep on my lap, thereby encouraging me to sit still for extended periods of time. It helped, and I'm grateful. I really miss her.]