site

A custom static site generator written in C.
git clone https://unitehenry.com/git/site.git
Log | Files | Refs | README

generate (362B)


      1 #!/usr/bin/env bash
      2 
      3 mkdir -p static/fonts
      4 
      5 if [ ! -d "static/fonts/DepartureMono-1.500" ]; then
      6   wget https://github.com/rektdeckard/departure-mono/releases/download/v1.500/DepartureMono-1.500.zip
      7 
      8   unzip DepartureMono-1.500.zip -d static/fonts
      9 
     10   rm DepartureMono-1.500.zip
     11 fi
     12 
     13 gcc src/*.c -o site
     14 
     15 if [ $? -eq 0 ]; then
     16   chmod +x site
     17 
     18   ./site content
     19 fi