From 78a0030d4606a2259e64db388e883abd10610419 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Mon, 22 Dec 2014 17:20:25 -0500 Subject: [PATCH] download-grammars -> convert-grammars Downloading is only a small part of what this script does. The main thing it does is convert grammars to JSON. --- CONTRIBUTING.md | 2 +- Rakefile | 2 +- script/{download-grammars => convert-grammars} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename script/{download-grammars => convert-grammars} (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 69081657..b6b682f6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,7 @@ Great! You'll need to: 0. Add an entry for your language to [`languages.yml`][languages]. 0. Add a grammar for your language. Please only add grammars that have a license that permits redistribution. 0. Add your grammar as a submodule: `git submodule add https://github.com/JaneSmith/MyGrammar vendor/grammars/MyGrammar`. - 0. Add your grammar to [`grammars.yml`][grammars] by running `script/download-grammars --add vendor/grammars/MyGrammar`. + 0. Add your grammar to [`grammars.yml`][grammars] by running `script/convert-grammars --add vendor/grammars/MyGrammar`. 0. Add samples for your language to the [samples directory][samples]. In addition, if your new language defines an extension that's already listed in [`languages.yml`][languages] (such as `.foo`) then sometimes a few more steps will need to be taken: diff --git a/Rakefile b/Rakefile index 068af0bb..b38486c0 100644 --- a/Rakefile +++ b/Rakefile @@ -48,7 +48,7 @@ end task :build_grammars_gem do rm_rf "grammars" - sh "script/download-grammars" + sh "script/convert-grammars" sh "gem", "build", "github-linguist-grammars.gemspec" end diff --git a/script/download-grammars b/script/convert-grammars similarity index 100% rename from script/download-grammars rename to script/convert-grammars