X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/3910a1c4f5cd82cdcee45c0423f3f264e332b2a8..cc75efcbf4a83473ae4aa409476212ceb4b4daf5:/tools/mkdigraphs-vim diff --git a/tools/mkdigraphs-vim b/tools/mkdigraphs-vim index a4bdfe8..b9ab426 100755 --- 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;