From 1a76740eff41f63e64f1e65e930ad286f357362c Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Mon, 18 May 2020 11:18:22 -0600 Subject: Add hook to put branch and evision in the version for development builds. --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e1a3764..6c48c20 100644 --- a/Makefile.am +++ b/Makefile.am @@ -212,3 +212,7 @@ info_TEXINFOS = doc/dejagnu.texi pip-install: pip3 install --upgrade -e $(top_srcdir) + +install-data-hook: + revision=`cd $(srcdir) && git rev-parse --short HEAD` \ + && sed -i -e "s/^set *frame_version.*/set frame_version $(BRANCH)-$${revision}/" $(pkgdatadir)/runtest.exp -- cgit v1.1