mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 02:56:39 +00:00 
			
		
		
		
	Just give it a set of files, one file per argument, and it will make sure openmw can read them. On linux/mac you can use "xargs --arg-file=nifs.txt ./niftest" to give it a list of files to check.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			342 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
#Script to test all nif files (both loose, and in BSA archives) in data files directory
 | 
						|
 | 
						|
DATAFILESDIR="$1"
 | 
						|
 | 
						|
find "$DATAFILESDIR" -iname *bsa > nifs.txt
 | 
						|
find "$DATAFILESDIR" -iname *nif >> nifs.txt
 | 
						|
 | 
						|
sed -e 's/.*/\"&\"/' nifs.txt > quoted_nifs.txt
 | 
						|
 | 
						|
xargs --arg-file=quoted_nifs.txt ../../../niftest
 | 
						|
 | 
						|
rm nifs.txt
 | 
						|
rm quoted_nifs.txt
 |