Skip to content

Commit 9c38148

Browse files
committed
CDRIVER-2297: Space out parens
1 parent d49be4d commit 9c38148

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/autotools/Versions.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
MONGOC_CURRENT_FILE=${srcdir}/VERSION_CURRENT
22
MONGOC_VERSION=$(cat $MONGOC_CURRENT_FILE)
33
# Ensure newline for "cut" implementations that need it, e.g. HP-UX.
4-
MONGOC_MAJOR_VERSION=$((cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f1)
5-
MONGOC_MINOR_VERSION=$((cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f2)
6-
MONGOC_MICRO_VERSION=$((cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f3)
4+
MONGOC_MAJOR_VERSION=$( (cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f1 )
5+
MONGOC_MINOR_VERSION=$( (cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f2 )
6+
MONGOC_MICRO_VERSION=$( (cat $MONGOC_CURRENT_FILE; echo) | cut -d- -f1 | cut -d. -f3 )
77
MONGOC_PRERELEASE_VERSION=$(cut -s -d- -f2 $MONGOC_CURRENT_FILE)
88
AC_SUBST(MONGOC_VERSION)
99
AC_SUBST(MONGOC_MAJOR_VERSION)

0 commit comments

Comments
 (0)