ACEC/hCaD_V2/scripts/generate-options-range-list.sh
2022-10-21 19:34:18 +08:00

19 lines
435 B
Bash
Executable File

#!/bin/sh
cd `dirname $0`
egrep '^(OPTION|BCEOPT|SHROPT)\( ' ../src/options.hpp | \
grep -v '\<double,' | \
sed -e 's,^[^(]*(,,' \
-e 's/\<int,//' \
-e 's/\<bool,//' \
-e 's,".*,,' \
-e 's/,[^,]*$//' \
-e 's,/\*[^\*]*\*/,,' \
-e 's/,/ /g' | \
awk '{printf "%s %d %d %d\n", $1, $2, $3, $4}' | \
grep -v 'check' | \
grep -v 'clim' | \
grep -v 'dlim' | \
grep -v 'extend' | \
grep -v 'learn' | \
grep -v 'witness'