Tools for AutoMenu
Here are the scripts used to generate the menus in my website. The basic idea is that I have a static site in a folder. The scripts copy that site to a new folder while omitting some junk that doesn't belong on the external web. It then processes all the .html files to add automatic links and menus once that is done it copies the processed files to directories where they will be uploaded by NCFTP to the actual web sites. This second copy is necessary because use NCFTP to copy the site to several hosts and I tell NCFTP to delete succesfully uploaded files so that I can se at a glance when the upload fails.
- sync.sh
- The master script that controls the copying, substitution and uploading process.
- control.sh
- Copies and substitutes all the files
- copytoupload.sh
- Copy all the required files to the upload directory
- makehtml.sh
- Make HTML files from VB6 projects. Relies on vb2html
- makemenu.awk
- Convert the slightly user friendly menu definitions into a slightly computer friendly file for use by the AWK scripts
- sub1file.sh
- Do the substitutions on one file.
- subhtml.awk
- This is the AWK script that creates the menus in the HTML files
- upload.sh
- Uploads the web to the hosts
- xxcopy.sh
- A wrapper around a set of DOS xcopy commands that copy the files from the source web to the upload directory. This is one of the few commands that DOS has that is better than anything I have been able to find in any UNIX shell.
- menudata.dat
- This is the file that defines the content of the menus.
- menudata.dat.o
- This is output of the AWK script that processes the menudata.dat file to make it slightly more computer friendly.
No comments:
Post a Comment