[riot-notifications] [RIOT-OS/RIOT] build system: add machine-readable RIOT_VERSION_CODE macro (#16765)

Martine Lenders notifications at github.com
Tue Aug 24 15:47:37 CEST 2021


> ```
> git describe | sed -E 's/([0-9]+).([0-9]+).*/\1.\2/'
> ```
> 
> 
>     
>   
> 
> always only returns the release branch

1. Why the excessive use of `sed?`
    ```
git describe | grep -Eo '([0-9]{4}).([0-9]{2})'
    ```
2. That would be imprecise. All RCs and all commits _towards_ a release would then be versioned as _THE_ release.

-- 
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/16765#issuecomment-904658092
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210824/93ec37f6/attachment.htm>


More information about the notifications mailing list