Feb
7
Article list generation script
I wrote the articles/index.html generation script, using Bash and some sed magic.
This is a sample input file:
Using Glib Signals with GOB_gob-signals
Introducing the Glib Mainloop_glib-mainloop
which outputs the current index.html.
You can find the script here, it's called genindex.sh. The index.html.in file I use as a boilerplate in the end is here, very easy to figure out what's done.
Bash is a really powerful thing, the more scripts I try to write using it, the more I learn.
Of course you could do something like this using PHP, Python or something else, but Bash is much cleaner IMHO (i.e.: you don't need a fully fledged PHP installation to do stuff like this).
Comments:
No Comments for this post yet...