nickva commented on a change in pull request #3422:
URL: https://github.com/apache/couchdb/pull/3422#discussion_r593935304



##########
File path: rebar.config.script
##########
@@ -92,6 +92,9 @@ case VerList of
     _ -> ok
 end.
 
+[OptMajorVersion|_] = VerList.
+OtpMajorVersion20 = case OptMajorVersion of 20 -> "true"; _ -> "false" end.
+os:putenv("COUCHDB_OTP_MAJOR_VERSION_20", OtpMajorVersion20).

Review comment:
       If we only need to check this in Erlang code, we can rely on 
`OTP_RELEASE` directly:
   
   https://erlang.org/doc/reference_manual/macros.html#predefined-macros
   
   
https://github.com/apache/couchdb/blob/00811b4a9c4df56defb7456431d44abb7c0baa79/src/fabric/src/fabric2_util.erl#L386-L387




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to