#!/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" |