mirror of
				https://github.com/PaddlePaddle/PaddleOCR.git
				synced 2025-11-04 03:39:22 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			353 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			353 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								set -e
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								readonly VERSION="3.8"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								version=$(clang-format -version)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if ! [[ $version == *"$VERSION"* ]]; then
							 | 
						||
| 
								 | 
							
								    echo "clang-format version check failed."
							 | 
						||
| 
								 | 
							
								    echo "a version contains '$VERSION' is needed, but get '$version'"
							 | 
						||
| 
								 | 
							
								    echo "you can install the right version, and make an soft-link to '\$PATH' env"
							 | 
						||
| 
								 | 
							
								    exit -1
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								clang-format $@
							 |