Drop extensions from script filenames

This commit is contained in:
Max Brunsfeld 2016-01-15 12:57:32 -08:00
parent 7dfb1dbdf6
commit 04afda2e66
9 changed files with 4 additions and 5 deletions

View file

@ -1,27 +0,0 @@
#!/usr/bin/env bash
GRAMMARS_DIR=$(dirname $0)/../spec/fixtures
GRAMMARS=(
javascript
json
c
cpp
)
for grammar in ${GRAMMARS[@]}; do
echo "Fetching ${grammar} grammar..."
grammar_dir=${GRAMMARS_DIR}/${grammar}
grammar_url=https://github.com/maxbrunsfeld/tree-sitter-${grammar}
if [ ! -d $grammar_dir ]; then
git clone $grammar_url $grammar_dir
fi
(
cd $grammar_dir;
git reset --hard;
git pull origin master;
)
done