#!/bin/sh -e cmds="$(dirname "$(realpath -- "$0")")" . "$cmds/env.rc" cd "$1" [ -s parse.hash ] && hash_our="`cat parse.hash`" || : [ -s download.hash ] && hash_their="`cat download.hash`" || : [ "$hash_our" != "$hash_their" ] || exit 0 [ -s max ] && max=`cat max` || max=$FEEDER_MAX_ITEMS $ZSTD -d < feed.zst | $cmds/feed2mdir/feed2mdir -max-entries $max . > title.tmp mv title.tmp title echo "$hash_their" > parse.hash