EXTRA_DIST = \
mstflint.spec \
- hca_self_test.ofed
+ hca_self_test.ofed \
+ gitversion.h
# create config dir if not exist
test -d config || mkdir config
+sh gitversion.sh
+
set -x
aclocal -I config
libtoolize --force --copy
--- /dev/null
+#!/bin/sh
+
+if git rev-parse --short HEAD > gitversion.tmp
+then
+ echo "#define TOOLS_SVN_VER \"`tr -d '\n' < gitversion.tmp`\"" > gitversion.h
+fi
+rm gitversion.tmp
#include <string.h>
#include <stdlib.h>
-// To be replaced by an external script:
+#include "gitversion.h"
+
#ifndef TOOLS_SVN_VER
#define TOOLS_SVN_VER "N/A"
#endif