dotfiles/.bin/dev-showdiff-cvs

10 lines
185 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/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