1 m4_define([_m4_divert(SCRIPT)], 100)
2 m4_divert_push([SCRIPT])dnl
5 # ompi_get_version is created from ompi_get_version.m4 and ompi_get_version.m4sh.
7 # Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
8 # University Research and Technology
9 # Corporation. All rights reserved.
10 # Copyright (c) 2004-2005 The University of Tennessee and The University
11 # of Tennessee Research Foundation. All rights
13 # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
14 # University of Stuttgart. All rights reserved.
15 # Copyright (c) 2004-2005 The Regents of the University of California.
16 # All rights reserved.
19 # Additional copyrights may follow
24 m4_include([ompi_get_version.m4])
30 # svnversion can take a while to run. If we don't need it, don't run it.
31 --major|--minor|--release|--greek|--base|--help)
39 if test -z "$srcfile"; then
42 OMPI_GET_VERSION([$srcfile],[OMPI])
44 if test "$option" = ""; then
54 echo $OMPI_MAJOR_VERSION
57 echo $OMPI_MINOR_VERSION
60 echo $OMPI_RELEASE_VERSION
63 echo $OMPI_GREEK_VERSION
69 echo $OMPI_BASE_VERSION
72 echo ${OMPI_VERSION} ${OMPI_MAJOR_VERSION} ${OMPI_MINOR_VERSION} ${OMPI_RELEASE_VERSION} ${OMPI_GREEK_VERSION} ${OMPI_SVN_R}
76 $0 <srcfile> [<option>]
78 <srcfile> - Text version file
80 --full - Full version number
81 --major - Major version number
82 --minor - Minor version number
83 --release - Release version number
84 --greek - Greek (alpha, beta, etc) version number
85 --svn - Subversion repository number
86 --all - Show all version numbers, separated by :
87 --base - Show base version number (no svn number)
92 echo "Unrecognized option $option. Run $0 --help for options"