5 [ -n "$1" ] && echo "$1"
12 while IFS= read -r line; do
16 if [ "${line:0:11}" = "CRYPTSETUP_" ]; then
18 while [ $i -lt $len ]; do
19 if [ "${line:$i:1}" = "{" ]; then
25 elif [ "${line:0:6}" = "crypt_" -a -n "$ver" ]; then
26 printf 'CHECK_SYMBOL(%s, %s)\n' $line $ver
28 done < <(tr -d '[:blank:];' < $1)
31 test $# -ge 1 || fail "usage: $0 <symbol_file>"
33 test -f $1 || fail "$1 is not a file."