#!/bin/sh # Propagate version changes to the necessary files. . ./RELEASE m4dir=../build_posix/aclocal if test -f $m4dir/version.m4 -a -f $m4dir/version-set.m4 ; then eval `grep '^VERSION_[A-Z]*=' $m4dir/version-set.m4` if test x${WIREDTIGER_VERSION_MAJOR} = x${VERSION_MAJOR} -a \ x${WIREDTIGER_VERSION_MINOR} = x${VERSION_MINOR} -a \ x${WIREDTIGER_VERSION_PATCH} = x${VERSION_PATCH} ; then exit 0 fi fi echo "Building $m4dir/version.m4" cat < $m4dir/version.m4 dnl WiredTiger product version for AC_INIT. Maintained by dist/s_version ${WIREDTIGER_VERSION_MAJOR}.${WIREDTIGER_VERSION_MINOR}.${WIREDTIGER_VERSION_PATCH} EOF echo "Building $m4dir/version-set.m4" cat < $m4dir/version-set.m4 dnl build by dist/s_version VERSION_MAJOR=${WIREDTIGER_VERSION_MAJOR} VERSION_MINOR=${WIREDTIGER_VERSION_MINOR} VERSION_PATCH=${WIREDTIGER_VERSION_PATCH} VERSION_STRING='"${WIREDTIGER_VERSION_STRING}"' AC_SUBST(VERSION_MAJOR) AC_SUBST(VERSION_MINOR) AC_SUBST(VERSION_PATCH) AC_SUBST(VERSION_STRING) VERSION_NOPATCH=${WIREDTIGER_VERSION_MAJOR}.${WIREDTIGER_VERSION_MINOR} AC_SUBST(VERSION_NOPATCH) EOF