1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 00:53:56 +00:00
openmw/components/nif/tests/test.sh
Arthur Moore c1315ed90c Build the nif file tester by default
It's extremely useful in determining if a nif file is bad without having to load up openmw or opencs.
Also updated the nif testing script to run at a low priority.
2015-01-01 22:49:33 -05:00

15 lines
353 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
nice -n 10 xargs --arg-file=quoted_nifs.txt ../../../niftest
rm nifs.txt
rm quoted_nifs.txt