]> Sergey Matveev's repositories - feeder.git/blob - cmd/parse.sh
Raise copyright years
[feeder.git] / cmd / parse.sh
1 #!/bin/sh -e
2
3 cmds="$(dirname "$(realpath -- "$0")")"
4 . "$cmds/env.rc"
5 cd "$1"
6 [ -s parse.hash ] && hash_our="`cat parse.hash`" || :
7 [ -s download.hash ] && hash_their="`cat download.hash`" || :
8 [ "$hash_our" != "$hash_their" ] || exit 0
9 [ -s max ] && max=`cat max` || max=$FEEDER_MAX_ITEMS
10 $ZSTD -d < feed.zst | $cmds/feed2mdir/feed2mdir -max-entries $max . > title.tmp
11 mv title.tmp title
12 echo "$hash_their" > parse.hash