summaryrefslogtreecommitdiff
path: root/include/Version.h
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2019-12-19 11:53:10 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2019-12-19 11:53:10 -0600
commit8ce2b9763c880084fd9d38fae6033e487fde58d9 (patch)
tree8b77e3d0c5f24bb8ba4b9ade6298684781a91665 /include/Version.h
downloadmts-io-sysfs-8ce2b9763c880084fd9d38fae6033e487fde58d9.tar.gz
mts-io-sysfs-8ce2b9763c880084fd9d38fae6033e487fde58d9.tar.bz2
mts-io-sysfs-8ce2b9763c880084fd9d38fae6033e487fde58d9.zip
Initial commit
Diffstat (limited to 'include/Version.h')
-rw-r--r--include/Version.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/Version.h b/include/Version.h
new file mode 100644
index 0000000..04166af
--- /dev/null
+++ b/include/Version.h
@@ -0,0 +1,25 @@
+/*
+ * Version.h
+ *
+ * Created on: 2012-04-17
+ * Author: smg
+ */
+
+#ifndef VERSION_H_
+#define VERSION_H_
+
+#include <string>
+
+class Version {
+ public:
+
+ //Pre-build Step - Executed in Makefile -> May require calling "make pre-build"
+ /*
+ * echo -e "//Pre-Build Auto-Generated Source\n
+ * #include \"Version.h\"\n\nconst std::string Version::version(\"$(shell git describe)\");"
+ * > ../Version.cpp
+ */
+ static const std::string version;
+};
+
+#endif /* VERSION_H_ */