Blame maint/Version.base.m4

Packit Service c5cf8c
dnl
Packit Service c5cf8c
dnl this m4 file expects to be processed with "autom4te -l M4sugar"
Packit Service c5cf8c
dnl 
Packit Service c5cf8c
m4_init
Packit Service c5cf8c
Packit Service c5cf8c
dnl get the real version values
Packit Service c5cf8c
m4_include([maint/version.m4])dnl
Packit Service c5cf8c
Packit Service c5cf8c
dnl The m4sugar langauage switches the default diversion to "KILL", and causes
Packit Service c5cf8c
dnl all normal output to be thrown away.  We switch to the default (0) diversion
Packit Service c5cf8c
dnl to restore output.
Packit Service c5cf8c
m4_divert_push([])dnl
Packit Service c5cf8c
dnl
Packit Service c5cf8c
dnl now dump out a shell script header for those looking to change the version string
Packit Service c5cf8c
# This shell script is no longer the canonical version number script, but rather
Packit Service c5cf8c
# a byproduct of running ./maint/updatefiles using maint/Version.base.m4 as
Packit Service c5cf8c
# input.  The real version info is contained in maint/version.m4 instead.  It is
Packit Service c5cf8c
# intentionally not managed by the makefile system and may not be up to date at
Packit Service c5cf8c
# all times w.r.t. the version.m4 file.
Packit Service c5cf8c
Packit Service c5cf8c
dnl now provide shell versions so that simple scripts can still use
Packit Service c5cf8c
dnl $MPICH_VERSION as before
Packit Service c5cf8c
MPICH_VERSION=MPICH_VERSION_m4
Packit Service c5cf8c
export MPICH_VERSION
Packit Service c5cf8c
Packit Service c5cf8c
dnl balance our pushed diversion
Packit Service c5cf8c
m4_divert_pop([])dnl