From 90a45f9729f131569889f52cf792007f23df3949 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Jan 2017 00:59:01 -0500 Subject: tidy --- make | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 make (limited to 'make') diff --git a/make b/make new file mode 100755 index 0000000..b3090a3 --- /dev/null +++ b/make @@ -0,0 +1,20 @@ +#!/usr/bin/env ruby +$:.unshift('lib') +require 'sitegen' +require 'page_index' + +# Initialize the site generator +Sitegen::init + +# This should trigger a full recursive crawl, loadng everything into +# the sitegen. +IndexPage::new('src').local_input + +# Tell the sitegen which files we want +Sitegen.pages.each do |page| + Sitegen::want(page.local_outfile) +end +Sitegen::want('out/index.atom') + +# Make! +print Sitegen::make(:all) -- cgit v1.2.3-2-g168b