From 5518c450f1c19da986977c0616a54d2dbb6e915e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Thu, 21 Sep 2006 13:21:40 +0000 Subject: [PATCH] use check_version.pl --- org.glite.lb.client/Makefile | 10 ++-------- org.glite.lb.client/build.xml | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/org.glite.lb.client/Makefile b/org.glite.lb.client/Makefile index e1b3107..8d43e35 100644 --- a/org.glite.lb.client/Makefile +++ b/org.glite.lb.client/Makefile @@ -26,6 +26,7 @@ version=${module.version} VPATH=${top_srcdir}/src:${top_srcdir}/test:${top_srcdir}/examples:${top_srcdir}/doc AT3=perl -I${top_srcdir}/project ${top_srcdir}/project/at3 GENSAM=${top_srcdir}/examples/gen_sample_job +CHECK_VERSION:=VERSION=${version} VERSION_AHEAD=0 perl ${top_srcdir}/project/check_version.pl SUFFIXES = .T .l @@ -304,13 +305,6 @@ endif clean: check_version: - @perl -ne '/#define GLITE_LB_CLIENT_INTERFACE "(\d+)\.\d+\.\d+"/; \ - $$iface=$$1; \ - $$_="${version}"; /(\d+)\.\d+\.\d+/; \ - if ($$iface != $$1) { \ - print "error: Major version of the interface ($$iface) does not match implementation ($$1)\n" ;\ - exit 1; \ - } \ - ' ${stagedir}/include/glite/lb/interface_version.h + ${CHECK_VERSION} ${stagedir}/include/glite/lb/interface_version.h .PHONY: default all compile examples fake check stage dist distsrc distbin install clean check_version diff --git a/org.glite.lb.client/build.xml b/org.glite.lb.client/build.xml index b1eb812..01b529b 100755 --- a/org.glite.lb.client/build.xml +++ b/org.glite.lb.client/build.xml @@ -20,6 +20,9 @@ Revision history: $Log$ + Revision 1.6 2005/05/26 15:13:40 zurek + inserted module.build.file + Revision 1.5 2004/10/18 19:16:09 zsalvet RPM descriptions @@ -104,6 +107,7 @@ + -- 1.8.2.3