Blame gnulib-tests/test-version-etc.sh

Packit Service fdd496
#! /bin/sh
Packit Service fdd496
# Test suite for version-etc.
Packit Service fdd496
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
Packit Service fdd496
# This file is part of the GNUlib Library.
Packit Service fdd496
#
Packit Service fdd496
# This program is free software: you can redistribute it and/or modify
Packit Service fdd496
# it under the terms of the GNU General Public License as published by
Packit Service fdd496
# the Free Software Foundation; either version 3 of the License, or
Packit Service fdd496
# (at your option) any later version.
Packit Service fdd496
#
Packit Service fdd496
# This program is distributed in the hope that it will be useful,
Packit Service fdd496
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service fdd496
# GNU General Public License for more details.
Packit Service fdd496
#
Packit Service fdd496
# You should have received a copy of the GNU General Public License
Packit Service fdd496
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service fdd496
Packit Service fdd496
TMP=ve-expected.tmp
Packit Service fdd496
LC_ALL=C
Packit Service fdd496
export LC_ALL
Packit Service fdd496
ERR=0
Packit Service fdd496
Packit Service fdd496
cat > $TMP <
Packit Service fdd496
test-version-etc (PROJECT) VERSION
Packit Service fdd496
COPYRIGHT Free Software Foundation, Inc.
Packit Service fdd496
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
Packit Service fdd496
This is free software: you are free to change and redistribute it.
Packit Service fdd496
There is NO WARRANTY, to the extent permitted by law.
Packit Service fdd496
Packit Service fdd496
Written by Sergey Poznyakoff and Eric Blake.
Packit Service fdd496
EOT
Packit Service fdd496
Packit Service fdd496
./test-version-etc${EXEEXT} --version |
Packit Service fdd496
 sed '1s/test-version-etc (.*) .*/test-version-etc (PROJECT) VERSION/
Packit Service fdd496
      /^Packaged by/d
Packit Service fdd496
      2,3 s/Copyright (C) [0-9]\{4,4\}/COPYRIGHT/' |
Packit Service fdd496
 tr -d '\015' |
Packit Service fdd496
 diff -c $TMP - || ERR=1
Packit Service fdd496
Packit Service fdd496
rm $TMP
Packit Service fdd496
Packit Service fdd496
exit $ERR