mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
* Update all submodules * Ensure always using lastest docker image * Allow passing in GEM_VERSION from env This is useful to building test gems in a cache friendly way using: `GEM_VERSION=$(git describe --tags 2>/dev/null | sed 's/-/./g' | sed 's/v//') bundle exec rake build_gem` * Update submodules one last time * Set version 6.0.0
15 lines
246 B
Bash
Executable File
15 lines
246 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
image="linguist/grammar-compiler:latest"
|
|
mkdir -p grammars
|
|
|
|
docker pull $image
|
|
|
|
exec docker run --rm \
|
|
-u $(id -u $USER):$(id -g $USER) \
|
|
-v $PWD:/src/linguist \
|
|
-w /src/linguist $image "$@"
|