[En-Nut-Discussion] Retrieve the Nut/OS SVN revision from code
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Mon Jan 12 17:48:32 CET 2015
>>>>> "Philipp" == Philipp Burch <phip at hb9etc.ch> writes:
Philipp> Hello everyone, to keep track of what version is installed on
Philipp> every produced device, I've implemented a simple CLI command
Philipp> that shows the build timestamp, the revision of the application
Philipp> code, the compiler version and the Nut/OS version (from
Philipp> sys/version.h). This is fine for projects which are based on
Philipp> stable Ethernut releases, but since Tiva TM4C is not an
Philipp> officially supported platform yet, I'm still working with code
Philipp> directly from SVN. Is there a (simple) way to retrieve the SVN
Philipp> revision from inside the Nut/OS code? Ideally something that
Philipp> would still work when using stable releases (not located in a
Philipp> versioned source tree).
Philipp> Are there any suggestions about how to do that or has someone
Philipp> probably already a solution ready for it?
Did you have a look at guess-rev.sh from OpenOCD?
> ~/devel/ethernut_projects/cps_stm32/guess-rev.sh
-ge98c6d0-svn5980
> git svn rebase
...
e> ~/devel/ethernut_projects/cps_stm32/guess-rev.sh
-gffb6f25-svn5993
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list