Blame maint/Version.base.m4

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