version.sh
authorArt Cancro <ajc@citadel.org>
Sat, 12 Jun 2021 19:02:40 +0000 (15:02 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 12 Jun 2021 19:02:40 +0000 (15:02 -0400)
version.sh [new file with mode: 0755]

diff --git a/version.sh b/version.sh
new file mode 100755 (executable)
index 0000000..5aaaf3b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Identify the version numbers embedded in these components.
+# This is not very useful on its own.  It will become part of a build system later.
+
+libcitadel_version=`grep LIBCITADEL_VERSION_NUMBER  libcitadel/lib/libcitadel.h | sed s/"[^0-9.]"/""/g`
+citserver_version=`grep REV_LEVEL citadel/citadel.h | sed s/"[^0-9.]"/""/g`
+webcit_version=`grep CLIENT_VERSION webcit/webcit.h | sed s/"[^0-9.]"/""/g`
+
+echo libcitadel $libcitadel_version , citserver $citserver_version , webcit $webcit_version