dotfiles/.bin/OLD/dev-showdiff-cvs
2024-02-14 07:55:58 +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