From 43fa563b7702d061c183a8ac426ba33c5837b61b Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Sat, 29 Oct 2016 08:33:58 -0400 Subject: [PATCH] Adding script/list-grammars to script/add-grammar --- script/add-grammar | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/add-grammar b/script/add-grammar index 25c12176..d97d8202 100755 --- a/script/add-grammar +++ b/script/add-grammar @@ -8,7 +8,7 @@ ROOT = File.expand_path("../../", __FILE__) # Break a repository URL into its separate components def parse_url(input) hosts = "github\.com|bitbucket\.org|gitlab\.com" - + # HTTPS/HTTP link pointing to recognised hosts if input =~ /^(?:https?:\/\/)?(?:[^.@]+@)?(?:www\.)?(#{hosts})\/([^\/]+)\/([^\/]+)/i { host: $1.downcase(), user: $2, repo: $3.sub(/\.git$/, "") } @@ -91,3 +91,6 @@ exit 1 if $?.exitstatus > 0 log "Confirming license" `script/licensed --module "#{repo_new}"` + +log "Updating grammar documentation in vendor/REAEDME.md" +`script list-grammars`