mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
cdfa24e15d
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.
16 lines
342 B
Bash
Executable File
16 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
|