mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			226 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			226 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
set -e
 | 
						|
cd "$(dirname "$0")/.."
 | 
						|
 | 
						|
image="linguist/grammar-compiler:latest"
 | 
						|
mkdir -p grammars
 | 
						|
 | 
						|
exec docker run --rm \
 | 
						|
    -u $(id -u $USER):$(id -g $USER) \
 | 
						|
    -v $PWD:/src/linguist \
 | 
						|
    -w /src/linguist $image "$@"
 |