#!/bin/sh # xxd-standalone doesn't exist as its own tarball or git repo. # It's made of just a few files from the vim git tree. Every time vim # get a minor release (pretty often), this gets marked as outdated # by repology. But e.g. the xxd stuff from vim 9.2.0658 didn't get # changed for the 9.2.1202 vim release. # So this script exists to (a) get the latest git tag for the vim repo # and (b) compare the xxd-standalone files and see if they've actually # changed. ATOMURL=https://github.com/vim/vim/tags.atom RAWBASE=https://raw.githubusercontent.com/vim/vim set -e source ./xxd-standalone.info # scrape latest release from atom feed NEW="$( wget -qO- $ATOMURL | \ perl -nle 'if(m{