Skip to content

Commit

Permalink
Add version info from package
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jan 9, 2022
1 parent 54f3dfd commit fe04613
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion m4/calaos.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dnl CALAOS_VERSION
AC_DEFUN([CALAOS_VERSION],
[dnl
m4_define([v_revision], m4_esyscmd([(git describe --tags --always master 2>/dev/null || echo 0) | tr -d '\n']))dnl
m4_define([v_revision], m4_esyscmd([(cat version 2>/dev/null || echo 0) | tr -d '\n']))dnl
m4_define([calaos_version], [v_revision])
])
6 changes: 6 additions & 0 deletions src/bin/calaos_server/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef VERSION_H
#define VERSION_H

#define PKG_VERSION_STR "git"

#endif // VERSION_H
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git

0 comments on commit fe04613

Please sign in to comment.