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

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