dir2html.sh is a two or three hour hack. So be nice with it. Be careful with version and syntax of /bin/ls.
This shell script aim to create an index.html for a directory. It can be used when httpd is not configured to do this job.
Download:
dir2html-v0.8.sh |
dir2html-v0.7.sh |
dir2html-v0.6.sh |
dir2html-v0.5.sh |
dir2html-v0.4.sh |
dir2html-v0.3.sh |
dir2html-v0.2.sh |
dir2html-v0.1.sh |
Demo: Demo links.
License: This program is released under GPL license.
ChangeLog:
v 0.8 (08 sep 2005): ~~~~~~~~~~~~~~~~~~~~ - add '-h' flag: automatic header (directory name instead of HEADER file) - add '-q' flag: quiet mode to be able to put this script in crontab v 0.7 (07 jui 2005): ~~~~~~~~~~~~~~~~~~~~ - use getops to manage flags o -w : overwrite index.html o -f : use FOOTER file to include in foot of index.html o -p [path] : path to process - use ".NOlslR" file to stop automatic footer (generated by ls -lR) v 0.6 (23 jun 2005): ~~~~~~~~~~~~~~~~~~~~ - Add html creation with FOOTER v 0.5 (17 may 2005): ~~~~~~~~~~~~~~~~~~~~~ - Remove bogus ("$2" == "1" not $2 == "1") - Add tree during processing. v 0.4 (24 mar 2005): ~~~~~~~~~~~~~~~~~~~~~ - css variable to modify quickly CSS style. - add ".." directory to easy navigate in directories. - "-w" option to override existing index.html (without, we leave them) v 0.3 (10 mar 2005): ~~~~~~~~~~~~~~~~~~~~~ - Add icons and HEADER file to include a header to HTML file generated. v 0.2 (10 mar 2005): ~~~~~~~~~~~~~~~~~~~~ - bug fixes v 0.1 (9 mar 2005): ~~~~~~~~~~~~~~~~~~~ - orginal release