 c9236bbf03
			
		
	
	
	
	
	c9236bbf03* Fix calling xargs on OSX * Fix cmake-format-all.sh script * Design ci/cmake-format-all.sh and ci/check-cmake-format.sh to be consistent with the clang ones
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| source "$(dirname "$BASH_SOURCE")/detect-clang-format.sh"
 | |
| source "$(dirname "$BASH_SOURCE")/common.sh"
 | |
| 
 | |
| find "$REPO_ROOT/nano" -iname "*.h"   \
 | |
|                        -o             \
 | |
|                        -iname "*.hpp" \
 | |
|                        -o             \
 | |
|                        -iname "*.cpp" \
 | |
|      | xargs -I sourceFile            \
 | |
|              "$CLANG_FORMAT" -i -style=file "sourceFile"
 |