PDA

View Full Version : Tool for adding bsjs.js to all html files



richardsugg
11-02-2006, 08:17 AM
I have a perl script that will automatically add the required <script ...</script> and onload tags to all HTML files to make a module. It also spits out list.txt, which contains a list of all the files processesed, so you can copy and paste that into the project file.

I guess I'm a bit slow, or maybe I just don't like following directions, but I'm having a rough time getting Early Christian Writings to compile. I'd be most grateful if someone could make ECW available as a module.

I've uploaded the zip file containing both the perl script and an executable. To use the perl script, you must have perl installed. If you don't have perl installed, you can use the executable, which does not require perl to be installed. If something doesn't work, feel free to make corrections to the script or let me know, and I'll correct it and re-upload.

To use, drop the script or exe into the directory containing the *.htm files and run it.

http://www.reclaimingthemind.org/bwscripts.zip (1.12MB)

Also, if you need to rename a bunch of files (i.e., from .html to .htm, as required for the modules) check out FlexRenamer: http://hp.vector.co.jp/authors/VA014830/english/FlexRena/

richardsugg
11-02-2006, 11:26 AM
I *think* so -- you can get everything from http://earlychristianwritings.com/