File: version.m4

package info (click to toggle)
gnu-smalltalk 3.1-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 33,300 kB
  • ctags: 13,999
  • sloc: ansic: 88,106; sh: 23,223; asm: 7,889; perl: 4,493; cpp: 3,539; awk: 1,483; yacc: 1,355; xml: 1,272; makefile: 1,192; lex: 843; sed: 258; objc: 124
file content (36 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
dnl I'd like this to be edited in -*- Autoconf -*- mode...
dnl
AC_DEFUN([GST_REVISION], [

VERSION=$PACKAGE_VERSION
VERSION_INFO=$1

# Split the version number
[
ST_MAJOR_VERSION=`echo $VERSION| sed 's%\..*%%'`
ST_MINOR_VERSION=`echo $VERSION| sed 's%[0-9]*\.\([0-9]*\).*%\1%'`
case $VERSION in
  *.*.*) 
    ST_EDIT_VERSION=`echo $VERSION| sed 's%\([0-9]*\)\.%%g'` ;;
  *.*[a-z])
    ST_EDIT_VERSION=\'`echo $VERSION| sed 's%[0-9.]*%%'`\' ;;
  *) ST_EDIT_VERSION=0 ;;
esac
]

AC_DEFINE_UNQUOTED(ST_MAJOR_VERSION, $ST_MAJOR_VERSION,
                   [Major version of GNU Smalltalk])
AC_DEFINE_UNQUOTED(ST_MINOR_VERSION, $ST_MINOR_VERSION,
                   [Minor version of GNU Smalltalk])
AC_DEFINE_UNQUOTED(ST_EDIT_VERSION, $ST_EDIT_VERSION,
                   [Patch level version of GNU Smalltalk])
AC_DEFINE_UNQUOTED(MAINTAINER, "$MAINTAINER",
                   [E-Mail address of the person maintaining this package])


AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(VERSION_INFO)
AC_SUBST(MAINTAINER)

])