Update suitable examples and tests to use blank mode
[shapes.git] / version_test.sh
blobd4d3ee665c44b5fa9307594400f5fdd781a1bd47
1 #!/bin/sh
3 # This file is part of Shapes.
5 # Shapes is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # any later version.
10 # Shapes is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Shapes. If not, see <http://www.gnu.org/licenses/>.
18 # Copyright 2008 Gustaf Hendeby
20 VF=VERSION
21 CF=configure
23 VFN=$(sed '2,$ d' < $VF)
24 CFN=$(sed -e '/^PACKAGE_VERSION=/ ! d' \
25 -e 's/^PACKAGE_VERSION='"'"'\(.*\)'"'"'$/\1/' < $CF)
27 test "X$VFN" = "X$CFN" ; ret=$?
29 if test $ret -gt 0
30 then
31 cat <<EOF
32 **********************************************************************
33 *** Version numbers in VERSION and configure.ac are not matching: ***
34 *** $VFN vs $CFN ***
35 *** Force a ***
36 *** make version_sync ***
37 *** or, if that doesn't work, ***
38 *** make -f Makefile.am version_sync ***
39 *** before any other make commands. ***
40 **********************************************************************
41 EOF
44 exit $ret