ACEC/hCaD_V2/scripts/check-options-occur.sh
2022-10-21 19:34:18 +08:00

12 lines
233 B
Bash
Executable File

#!/bin/sh
sed \
-e '/^[OLQ[A-Z]*(/!d' \
-e 's,^[OLQ[A-Z]*(,,' \
-e 's/,.*//' \
../src/options.hpp | \
while read option
do
grep -q opts.$option ../src/*.hpp ../src/*.cpp && continue
echo "option '$option' not found"
done