mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-26 09:52:07 +01:00
Per src/libmongoc/doc/installing.rst, the VERSION_CURRENT and VERSION_RELEASED files must now be generated. This requires Python and the GitPython pip module to run src/libmongoc/build/calc_release_version.py. A new libmongoc-version-current Makefile target has been added.
15 lines
642 B
Plaintext
15 lines
642 B
Plaintext
BSON_CURRENT_FILE=[]PHP_EXT_SRCDIR(mongodb)[/src/LIBMONGOC_VERSION_CURRENT]
|
|
BSON_VERSION=$(cat $BSON_CURRENT_FILE)
|
|
|
|
dnl Ensure newline for "cut" implementations that need it, e.g. HP-UX.
|
|
BSON_MAJOR_VERSION=$( (cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f1 )
|
|
BSON_MINOR_VERSION=$( (cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f2 )
|
|
BSON_MICRO_VERSION=$( (cat $BSON_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f3 )
|
|
BSON_PRERELEASE_VERSION=$(cut -s -d- -f2 $BSON_CURRENT_FILE)
|
|
|
|
AC_SUBST(BSON_VERSION)
|
|
AC_SUBST(BSON_MAJOR_VERSION)
|
|
AC_SUBST(BSON_MINOR_VERSION)
|
|
AC_SUBST(BSON_MICRO_VERSION)
|
|
AC_SUBST(BSON_PRERELEASE_VERSION)
|