nindwen.blue

my home page
git clone https://git.nindwen.blue/nindwen.blue.git
Log | Files | Refs | README

commit 286f570e90e6348442d71f9bccfd9673d7d09f72
parent 489f5d9f490a62e9a8218deb3f53ab110dc4bd76
Author: Nindwen <nindweniel@gmail.com>
Date:   Wed, 30 Mar 2016 21:47:57 +0300

Upgrade to Makefile

Diffstat:
Makefile | 11+++++++++++
slurp.sh | 34----------------------------------
2 files changed, 11 insertions(+), 34 deletions(-)

diff --git a/Makefile b/Makefile @@ -0,0 +1,11 @@ + +%.html: %.md head.html foot.html + markdown $< | cat head.html - foot.html | tidy -iq -utf8 > output/$@ + +css: sass/main.scss + sass --style compressed --update sass:output/css + +all: index.html css + +push: all + rsync -a output/ usvs:www/nindwen.blue diff --git a/slurp.sh b/slurp.sh @@ -1,34 +0,0 @@ -#!/bin/bash - -style() { - sass --style compressed --update sass:output/css -} - -watch() { - sass --style compressed --watch sass/:output/css -} - -page() { - markdown $1.md | cat head.html - foot.html | tidy -iq -utf8 > output/$1.html -} - -help() { - echo "apuva!" -} - -build() { - style - page index -} - -push() { - build - rsync -a output/ usvs:www/nindwen.blue -} - -if [ -z "$1" ]; then - push - exit -fi - -eval ${@}