[riot-notifications] [RIOT-OS/RIOT] build system: add fallback for RIOT_VERSION_CODE (#16895)

benpicco notifications at github.com
Sun Sep 26 21:52:53 CEST 2021


@benpicco commented on this pull request.



> @@ -530,7 +531,8 @@ endif
 
 # Generate machine readable RIOT VERSION macro
 RIOT_VERSION_CODE ?= $(shell echo ${RIOT_VERSION} | \
-                      sed -E 's/([0-9]+).([0-9]+).?([0-9]+)?.*/RIOT_VERSION_NUM\\\(\1,\2,0\3,${RIOT_EXTRAVERSION}\\\)/')
+                      sed -E 's/([0-9]+).([0-9]+).?([0-9]+)?.*/RIOT_VERSION_NUM\\\(\1,\2,0\3,${RIOT_EXTRAVERSION}\\\)/' | \
+                      grep RIOT_VERSION_NUM && echo -n "" || echo "${RIOT_VERSION_DUMMY_CODE}")

It's a bit of a hack, just a no-op so I get an else branch when `grep` returns with a non-0 exit code. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16895#discussion_r716252522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210926/6fde1279/attachment-0001.htm>


More information about the notifications mailing list