Skip to content

Commit

Permalink
Merge pull request #48 from robocup-logistics/thofmann/use-year-in-ve…
Browse files Browse the repository at this point in the history
…rsion-string

Use year in version string
  • Loading branch information
morxa authored Jul 12, 2019
2 parents 77c65b6 + 9884288 commit dc294d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/games/rcll/net.clp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
(pb-set-field ?vi "version_minor" ?*VERSION-MINOR*)
(pb-set-field ?vi "version_micro" ?*VERSION-MICRO*)
(pb-set-field ?vi "version_string"
(str-cat ?*VERSION-MAJOR* "." ?*VERSION-MINOR* "." ?*VERSION-MICRO*))
(str-cat ?*VERSION-MAJOR*
(if (> ?*VERSION-MINOR* 0) then (str-cat "." ?*VERSION-MINOR*) else "")
(if (> ?*VERSION-MICRO* 0) then (str-cat "." ?*VERSION-MICRO*) else "")
)
)
(return ?vi)
)

Expand Down
4 changes: 2 additions & 2 deletions src/libs/core/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#ifndef __CORE_VERSION_H_
#define __CORE_VERSION_H_

#define FAWKES_VERSION_MAJOR 1
#define FAWKES_VERSION_MINOR 1
#define FAWKES_VERSION_MAJOR 2019
#define FAWKES_VERSION_MINOR 0
#define FAWKES_VERSION_MICRO 0

#define FAWKES_VERSION_GT(major, minor) ((FAWKES_MAJOR_VERSION > major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor))
Expand Down

0 comments on commit dc294d0

Please sign in to comment.