tfabris / BlueGigaEmpeg

Arduino module and daughter board to convert the empeg Car MP3 player to Bluetooth output.
GNU General Public License v3.0
0 stars 0 forks source link

Implement an automatic version numbering system if possible. #17

Closed tfabris closed 6 years ago

tfabris commented 6 years ago

Investigate to see if GitHub has a method for automatically increasing the version number of a program with each checkin to the master branch. If so, implement that.

Display the version number in the initial logging text which appears on the serial port.

tfabris commented 6 years ago

Some hints here: https://stackoverflow.com/questions/17101473/change-version-file-automatically-on-commit-with-git

tfabris commented 6 years ago

https://stackoverflow.com/questions/16831536/can-you-change-a-file-content-during-git-commit

tfabris commented 6 years ago

https://gist.github.com/McRipper/5419879

tfabris commented 6 years ago

I'm having trouble getting the pre-commit file to output anything at all. None of the sites out there give a good example of how to do this. I'm using GitHub Desktop for Mac and I'm not even sure it's executing the pre-commit file at all, and if it did, what directory it would be acting upon (for example if i do "cat Version.h" in the script is it even in the right directory to see the file, and if not what is its relative path). None of the examples on the web show any of this critical information. When I try doing ECHO statements in the pre-commit script, I don't see them in the log files for GitHub Desktop. When I try to ECHO to a file with a write-to-file operator (>) then no file appears on the hard disk.

I don't know why it's not working and so I'm going to give up on this for now.