git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3910a1c
)
digraphs: mkdigraphs-vim: usage help if given arguments
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 22 Feb 2015 02:33:20 +0000
(
03:33
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 9 Jun 2015 03:43:42 +0000
(
05:43
+0200)
tools/mkdigraphs-vim
patch
|
blob
|
history
diff --git
a/tools/mkdigraphs-vim
b/tools/mkdigraphs-vim
index a4bdfe803e8e636ac7d99da5d9c06464c32f3a86..b9ab42668896fa77eea51b844da490e904282025 100755
(executable)
--- a/
tools/mkdigraphs-vim
+++ b/
tools/mkdigraphs-vim
@@
-2,6
+2,13
@@
VERSION=1.01
+if [ "$#" -ne 0 ]
+then
+ echo "Usage: $0 >digraphs-vim.inc.pl"
+ echo 'Collect digraph data from vim, standard output as Perl hash.'
+ exit 64 # EX_USAGE
+fi
+
vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
if ($. == 1) { # head
say "# digraphs list from vim version ", s/\s*\z//r;