aboutsummaryrefslogtreecommitdiff
path: root/www/generate.sh
Commit message (Collapse)AuthorAgeFilesLines
* Build website incrementally (and faster if you have the CPU cores)Michael Reed2017-07-091-9/+0
| | | | | | | | | | | | | | | | | | | | | | This is done by replacing www/generate.sh with a Makefile. Benefits: - Makes builds incremental, meaning that only the minimum number of markdown files will be converted to HTML during a build. The previous scheme always generated a new HTML file for every markdown file, which is a big waste of time if only 1 or 2 markdown files have been changed. - Allows for much faster builds through concurrent jobs (e.g., via "make -j4"). On my 4-core machine, my average build time for the website with generate.sh was just over 26 seconds; with "make -j4", it was 13 seconds. - Avoids portability issues with find(1) in generate.sh, which I was encountering on OpenBSD. A note on portability: unlike GNU Make, OpenBSD's Make does not have the "$(shell [commands])" construct, so we don't use that. Instead we use "!= [commands]", which is supported by both.
* Replaced '#!/bin/bash' w/ '#!/usr/bin/env bash'Andrew Robbins2017-06-231-1/+1
| | | | | This is mainly useful for being able to run these scripts on BSDs. And for users who use a Bash not installed to /bin.
* Make sure news index is always latestAlyssa Rosenzweig2017-04-081-0/+1
|
* Fix dependency directionAlyssa Rosenzweig2017-04-081-1/+1
|
* Index blog in generate.shAlyssa Rosenzweig2017-04-081-0/+1
|
* publish.sh: remove test cases; remove check on unbound variables (TODO: fix)Leah Rowe2017-04-051-1/+1
| | | | Alyssa, you need to make sure that variables are always bound.
* add error-checking to publish.shLeah Rowe2017-04-051-0/+4
|
* Delete cached htmlAlyssa Rosenzweig2017-04-041-0/+1
|
* Fix a few issuesAlyssa Rosenzweig2017-03-201-0/+0
|
* Master generate scriptAlyssa Rosenzweig2017-03-201-0/+2