[ofa-general] [PATCH] management/*/Makefile.am: update configure.in version on 'make dist'
Sasha Khapyorsky
sashak at voltaire.com
Sun Jan 6 15:16:45 PST 2008
This is similar gen_ver.sh usage in opensm/Makefile.am.
This updates the package version stored in configure.in in newly created
by 'make dist' package tarball. The version is generated by gen_ver.sh
in accordance with the tree state.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/Makefile.am | 4 ++++
libibcommon/Makefile.am | 4 ++++
libibmad/Makefile.am | 4 ++++
libibumad/Makefile.am | 4 ++++
4 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/infiniband-diags/Makefile.am b/infiniband-diags/Makefile.am
index e1b4d58..8e1e587 100644
--- a/infiniband-diags/Makefile.am
+++ b/infiniband-diags/Makefile.am
@@ -98,6 +98,10 @@ dist-hook:
if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \
$(top_srcdir)/../gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; \
fi
+ if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
+ ver=`$(top_srcdir)/../gen_ver.sh $(PACKAGE)` ; \
+ sed -e '/AC_INIT/s/$(PACKAGE), .*,/$(PACKAGE), '$$ver',/' $(top_srcdir)/configure.in > $(distdir)/configure.in ; \
+ fi
# install this to a default location.
install-data-hook:
diff --git a/libibcommon/Makefile.am b/libibcommon/Makefile.am
index 75889f4..dd8e264 100644
--- a/libibcommon/Makefile.am
+++ b/libibcommon/Makefile.am
@@ -30,3 +30,7 @@ dist-hook:
if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \
$(top_srcdir)/../gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; \
fi
+ if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
+ ver=`$(top_srcdir)/../gen_ver.sh $(PACKAGE)` ; \
+ sed -e '/AC_INIT/s/$(PACKAGE), .*,/$(PACKAGE), '$$ver',/' $(top_srcdir)/configure.in > $(distdir)/configure.in ; \
+ fi
diff --git a/libibmad/Makefile.am b/libibmad/Makefile.am
index beae1a4..9def2fe 100644
--- a/libibmad/Makefile.am
+++ b/libibmad/Makefile.am
@@ -32,3 +32,7 @@ dist-hook:
if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \
$(top_srcdir)/../gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; \
fi
+ if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
+ ver=`$(top_srcdir)/../gen_ver.sh $(PACKAGE)` ; \
+ sed -e '/AC_INIT/s/$(PACKAGE), .*,/$(PACKAGE), '$$ver',/' $(top_srcdir)/configure.in > $(distdir)/configure.in ; \
+ fi
diff --git a/libibumad/Makefile.am b/libibumad/Makefile.am
index 49c8b11..5b8a69a 100644
--- a/libibumad/Makefile.am
+++ b/libibumad/Makefile.am
@@ -44,6 +44,10 @@ dist-hook:
if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \
$(top_srcdir)/../gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; \
fi
+ if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
+ ver=`$(top_srcdir)/../gen_ver.sh $(PACKAGE)` ; \
+ sed -e '/AC_INIT/s/$(PACKAGE), .*,/$(PACKAGE), '$$ver',/' $(top_srcdir)/configure.in > $(distdir)/configure.in ; \
+ fi
install-data-hook:
cd $(DESTDIR)$(mandir)/man3 && \
--
1.5.4.rc2.38.gd6da3
More information about the general
mailing list