For use with (GNU) make
Every .m4 file runs through m4, and then my Powershell actually processes the results (pipelined) to create the .inc file.
Then the template HTML file gets ran through m4, where the .inc files are included where you tell them to be placed by the template file.
I then copy the file to various places, and upload them (if I have to, Dropbox is automatic). In fact, if you don't want to go through the hosting, you could just use Dropbox, create a short url to it after making it public, and not even have to worry about it, just copy it to your Dropbox.
You can set however you want to set it. And this file names all the names.
If you can figure out how get a generic .m4 to .inc (and .txt to .inc) working, I'd like to know. I can't seem to get it working with GNU make.
I also include the .css and .js files so that I have one place to edit them, and then they propagate. I could create hard links I guess.
# makefile for linkstomonitor.html .SUFFIXES: .SUFFIXES: .inc .txt .m4 POWERSHELL = powershell PSFLAGS = -NoLogo -ExecutionPolicy Unrestricted -File FTPDIR = d:\ftp\public_html INCLUDES = blog.inc buddhism.inc first.inc fonts.inc im.inc mail.inc misc.inc monthly.inc \ personal.inc phone.inc prog.inc proxy.inc radio.inc recipes.inc shizz.inc shopping.inc \ software.inc space.inc specials.inc storage.inc tips.inc torrent.inc weather.inc \ weekly.inc INCLUDEST = ps.inc all: linkstomonitor.html $(FTPDIR)\linkstomonitor.html $(FTPDIR)\linkstomonitor.css $(FTPDIR)\linkstomonitor.js linkstomonitor.html: $(INCLUDES) $(INCLUDEST) template.html m4 <template.html >linkstomonitor.html # upload file(s) then. upload.cmd $(INCLUDES): %.inc: %.m4 # delete old destination file rm $@ $(POWERSHELL) $(PSFLAGS) .\process-file.ps1 $< $(INCLUDEST): %.inc: %.txt # delete old destination file rm $@ $(POWERSHELL) $(PSFLAGS) .\process-shorts.ps1 $< $(FTPDIR)\linkstomonitor.html: linkstomonitor.html copy /y linkstomonitor.html d:\ftp\public_html copy /y linkstomonitor.html d:\ftp\bryanlprice.com copy /y linkstomonitor.html "e:\My Dropbox\Public\" $(FTPDIR)\linkstomonitor.css: linkstomonitor.css copy /y linkstomonitor.css d:\ftp\public_html copy /y linkstomonitor.css d:\ftp\bryanlprice.com copy /y linkstomonitor.css "e:\My Dropbox\Public\" $(FTPDIR)\linkstomonitor.js: linkstomonitor.js copy /y linkstomonitor.js d:\ftp\public_html copy /y linkstomonitor.js d:\ftp\bryanlprice.com copy /y linkstomonitor.js "e:\My Dropbox\Public\" clean: rm -f *.inc