copyfiles plugin

Most of my site uses blosxom in static mode. Because of this, I wanted to be able to generate my entire web directory by running blosxom, rather than having to copy files over by hand. So wrote copyfiles while, in static mode only, will look for files called fileslist in each directory, and copy the files or directories specified therein to the appropriate place in blosxom’s destination directory.

I learned a couple of painful lessons while writing this plugin. Don’t call perl’s File::Find re-entrantly. Things go horribly wrong. Also, if you use File::Copy to copy a file to itself, you’ll end up with an empty file.

permalink | computing/web/site/blosxom/plugins | 2007.11.19-22:36.00