diff options
author | John Whitley <john@luminous-studios.com> | 2015-08-18 21:21:11 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-26 02:15:24 -0400 |
commit | 4d39db355b6599389a86d9ad1aa76c98cb3c2461 (patch) | |
tree | dd6863c954f76b54557520db5db2c6f5920ffde8 /scripts/vim-patch-helper.awk | |
parent | 9602f0d58987bdbe16caf59cf9fb3e92f26de897 (diff) | |
download | rneovim-4d39db355b6599389a86d9ad1aa76c98cb3c2461.tar.gz rneovim-4d39db355b6599389a86d9ad1aa76c98cb3c2461.tar.bz2 rneovim-4d39db355b6599389a86d9ad1aa76c98cb3c2461.zip |
vim-patch.sh: update for Vim's hg => git migration
Diffstat (limited to 'scripts/vim-patch-helper.awk')
-rw-r--r-- | scripts/vim-patch-helper.awk | 18 |
1 files changed, 18 insertions, 0 deletions
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]); + } + } + } +} |