blob: 9a051e00e248a0f6e0fd183ca02e787c3257305e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# Check -V option.
. "${srcdir=.}/init.sh"
run_prog_skip_if_failed date +%Y > /dev/null
year="$(date +%Y)"
run_strace -V > "$LOG"
getval()
{
sed -r -n 's/#define[[:space:]]*'"$1"'[[:space:]]*"([^"]*)".*/\1/p' ../config.h
}
cat > "$EXP" << __EOF__
$(getval PACKAGE_NAME) -- version $(getval PACKAGE_VERSION)
Copyright (C) 1991-$year The strace developers <$(getval PACKAGE_URL)>.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
__EOF__
match_diff "$EXP" "$LOG"
rm -f "$EXP"
|