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