Debian Codegraph @

VERSION

raw
1 #! /bin/echo this_should_be_sourced
2 # -*- Mode: sh -*-
3 # VERSION --- Set version info for GNU-ish tool use
4
5 MAINTAINER='Bruce Korb <[email protected]>'
6
7 ## This file is part of AutoGen.
8 ## AutoGen Copyright (C) 1992-2018 by Bruce Korb - all rights reserved
9 ##
10 ## AutoGen is free software: you can redistribute it and/or modify it
11 ## under the terms of the GNU General Public License as published by the
12 ## Free Software Foundation, either version 3 of the License, or
13 ## (at your option) any later version.
14 ##
15 ## AutoGen is distributed in the hope that it will be useful, but
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 ## See the GNU General Public License for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License along
21 ## with this program. If not, see <http://www.gnu.org/licenses/>.
22
23 AG_MAJOR_VERSION=5
24 AG_MINOR_VERSION=18
25 AG_REVISION=$AG_MAJOR_VERSION.$AG_MINOR_VERSION
26 AG_PATCHLEVEL=.16
27 AG_VERSION=$AG_REVISION$AG_PATCHLEVEL
28
29 # AutoOpts versioning:
30 #
31 # AO_CURRENT represents the number of visible changes to the interface
32 # AO_REVISION represents the number of times the library has been
33 # modified with an unchanged interface.
34 # AO_AGE represents the number of older revisions the current library
35 # is capable of handling.
36 #
37 AO_LIBRARY=libopts.la
38 AO_CURRENT=42
39 AO_REVISION=1
40 AO_AGE=17
41
42 # For automake
43 #
44 VERSION=${AG_VERSION}
45 PACKAGE='GNU AutoGen'
46 [email protected]
47
48 # Display version numbers banner for my sanity!
49 #
50 AO_SOVERS=${AO_CURRENT}:${AO_REVISION}:${AO_AGE}
51 AO_SONAME=${AO_LIBRARY}-${AO_SOVERS}
52 w=`expr \( ${COLUMNS:-80} - 1 \) / 2`
53 h=`expr $w \* 2`
54 h=`printf "*%${h}s" '' | sed 's/ /-*/g'`
55 ag=`echo AUTOGEN | sed 's/\(.\)/\1 /g;s/ *$//'`
56 ag_off=`printf "$ag"|wc -c`
57 ag_off=`expr $w - \( $ag_off / 2 \)`
58 ag=`printf "%${ag_off}s${ag}" ""`
59
60 cat <<EOF
61 $h
62
63 ${ag}
64
65 `printf "%-${w}s %${w}s\n" "$PACKAGE-$VERSION" "${AO_SONAME}" || :`
66 $h
67 EOF
68
69 # VERSION ends here