From 9c021c0763dd09b8457d16389d693fdfe858ca82 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 2 Jun 2012 16:46:04 -0700 Subject: keep version in FS.pm instead of Makefile --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b603b8cb7..dc86c6065 100644 --- a/Makefile +++ b/Makefile @@ -115,8 +115,8 @@ RT_PATH = /opt/rt3 FREESIDE_PATH = `pwd` PERL_INC_DEV_KLUDGE = /usr/local/share/perl/5.14.2/ -VERSION=3.0git -TAG=freeside_3_0 +VERSION=`grep '^$VERSION' FS/FS.pm | cut -d\' -f2` +TAG=freeside_`echo ${VERSION} | perl -pe 's/\./_/g'` DEBVERSION = `echo ${VERSION} | perl -pe 's/(\d)([a-z])/\1~\2/'`-1 @@ -179,9 +179,6 @@ perl-modules: cd FS; \ [ -e Makefile ] || perl Makefile.PL; \ make; \ - perl -p -i -e "\ - s/%%%VERSION%%%/${VERSION}/g;\ - " blib/lib/FS.pm;\ perl -p -i -e "\ s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\ s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\ -- cgit v1.2.1