dotfiles/.bin/dev-showdiff-cvs
2023-02-22 08:31:38 +01:00

10 lines
185 B
Bash
Executable File

#!/bin/sh
set -ex
for _file in $@
do
_tmp="$(mktemp)"
cvs -nd sdk@cvs.openbsd.org:/cvs update -p $1 > $_tmp
cmp -s $_tmp $_file || vimdiff $_tmp $_file
rm -f $_tmp
done