#!/bin/sh # Get webring links to append to the CSV before building # Some webrings require an iframe or scripts, but I want a plain static # first-party HTML+CSS page. This script fetches webring links by # parsing the iframes and appends appropriate values to my webrings.csv file. set -e -u # the name of this program progname="$(basename "$0")" dirname="$(dirname "$0")" webrings_src="$dirname/../csv/webrings.base.csv" webrings_dest="$dirname/../csv/webrings.csv" help_text="Usage: $progname [OPTION...] Update webrings.csv with new prev/next links, to avoid iframes/scripts Options: -h Print this help and exit -d Dry run; just print results, don't update webrings.csv " usage() { printf '%s' "$help_text" } # when the user passess bad args, send a msg to stderr and exit # usage: bad_option