blob: 91093acb8cf0c779b20436c093656100c67c41d3 [file] [log] [blame]
#!/bin/sh
# Check -V option.
. "${srcdir=.}/init.sh"
run_strace -V > "$LOG"
getval()
{
sed -n 's/#define[[:space:]]*'"$1"'[[:space:]]*"\([^"]*\)".*/\1/p' ../config.h
}
printf "%s -- version %s\n" "$(getval PACKAGE_NAME)" "$(getval VERSION)" > "$EXP"
match_diff "$EXP" "$LOG"
rm -f "$EXP"