epfl-lasa / control-libraries

A collection of library modules to facilitate the creation of full control loop algorithms, including state representation, motion planning, kinematics, dynamics and control.
https://epfl-lasa.github.io/control-libraries
GNU General Public License v3.0
27 stars 2 forks source link

Incremental versioning #260

Closed eeberhard closed 2 years ago

eeberhard commented 2 years ago

Here's a snazzy little script to make incremental versioning of our development patches easier.

I want all little features, fixes and patches in develop to have a respective patch number, so that we can keep track of changes more easily. But, changing the project version in all the right places is a bit cumbersome.

This script makes it really easy to update the version number at the end of a PR. Basically, once your feature is ready to go, you can do ./update_version.sh --commit and it will automatically increment the patch number in all the files and generate a commit for you.

See the help text for the other options. At a future point we can get the CI to do this for us, but for now let's try it out manually.

I wouldn't mind this being the first PR after the 5.0.0 release, to set the foundation nicely, after which the other pending PRs can close.

eeberhard commented 2 years ago

I decided it would be a nice idea to make sure that this works on linux too, since the sed argument syntax is a little different. Should be all good now :)