#!/bin/rc rfork en fn entitle { basename $1 | sed 's/-/ /g' | bin/capitalize } fn usage { echo usage: $0 path >[1=2] exit usage } if(! ~ $#* 1) usage if(! test -d $1) usage media=`{walk -f $1 | grep -i '\.(jpe?g|png|webp|mp4|webm)$'} >$1/index.html { title=`{entitle $1 | sed 's/\./ /g'} [^<]*)/\1 - '^$"title^'/' cat tpl/menu echo '

'^$"title^'

' echo '' cat tpl/feet }