#!/bin/sh set -ue TARGET=$1 HERE=$(pwd) rm -rf $TARGET cp -a content/ $TARGET echo Converting gmi to html... cd $TARGET find . -name '*.gmi' -print0 | xargs -0 coppewebite-to-html --css $HERE/style.css echo Generating index... cat >index.gmi <>index.gmi echo Generating RSS... coppewebite-to-rss index.rss echo Converting index to HTML... coppewebite-to-html index.gmi --feed-title "El blog es mío" --feed-href index.rss --css $HERE/style.css echo Done