From 4d39db355b6599389a86d9ad1aa76c98cb3c2461 Mon Sep 17 00:00:00 2001 From: John Whitley Date: Tue, 18 Aug 2015 21:21:11 -0700 Subject: vim-patch.sh: update for Vim's hg => git migration --- scripts/vim-patch-helper.awk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/vim-patch-helper.awk (limited to 'scripts/vim-patch-helper.awk') diff --git a/scripts/vim-patch-helper.awk b/scripts/vim-patch-helper.awk new file mode 100644 index 0000000000..5a089fb0ec --- /dev/null +++ b/scripts/vim-patch-helper.awk @@ -0,0 +1,18 @@ +#/usr/bin/env awk -f +BEGIN { + FS="|"; +} +{ + if ($2 == "") { + print($1) + } else { + n=split($2,ary,", "); + for (i=1;i<=n;i++) { + if (match(ary[i], /tag: /)) { + gsub(/[()]/, "", ary[i]); + sub(/ *tag: /, "", ary[i]); + print(ary[i]); + } + } + } +} -- cgit