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