e1e0.net

sources for e1e0 website
git clone https://git.e1e0.net/e1e0.net.git
Log | Files | Refs

20200702-1832.txt (1943B)


      1 ------------------------------------------------------------------------
      2 2020-07-02 16:33:03 UTC
      3 ------------------------------------------------------------------------
      4 
      5 So I've written an static site generator.
      6 
      7 Yes, yes I know.  That's what everybody does, it's boring and not
      8 original at all.  But I'm boring and not original at all, so it's ok !
      9 
     10 I did it in C.  Why ?!, you ask with a mix of fear and disgust.  Well,
     11 two main reasons.  First, I kind of always liked C (although I have
     12 little knowledge of programming in general and C in particular).  And
     13 second, since I joined the OpenBSD team I've been wanting to dive a bit
     14 deeper in the source code of the system (not just ports) and maybe one
     15 day help in that area too.  That and also I'm a bit masochist xD
     16 
     17 Previously my small website was generated by the excellent [ssg
     18 script][1] by Roman Zolotarev combined with a simple makefile.  And that
     19 was all I needed.  The makefile also published things on my gopherhole.
     20 
     21 So I basically designed the static site generator to have the same
     22 functionalities (well, not the gopherhole, that is just handled with an
     23 rsync).
     24 
     25 Now a git hook calls the generator program (and the rsync for gopher),
     26 and all is good again.
     27 
     28 If you want to take a peek, I published it [here][2].  The horrors
     29 you'll see there may make you cry.  I decline all responsibility xD
     30 
     31 Keep in mind that this is my first program in C (well, the first one
     32 longer than 50 lines and with more than one function), also keep in mind
     33 that I'm no developer.  I'm used to create ugly glue stuff in various
     34 languages to serve my purposes, but this is my first command line tool
     35 that does something useful (kind of).
     36 
     37 As usual, patches are welcome at <patches@e1e0.net> and comments at
     38 <commens@e1e0.net>
     39 
     40 :wq
     41 
     42 ------------------------------------------------------------------------
     43 
     44 [1]: https://www.romanzolotarev.com/ssg.html
     45 [2]: https://git.e1e0.net/ssnail/file/README.html