From e280f1a49c58d194006c01459263f464e6616e57 Mon Sep 17 00:00:00 2001 From: rsiddall Date: Wed, 2 Apr 2008 16:57:57 +0000 Subject: [PATCH] Quick fix to update the release version number in the RPM spec file. This leaves the spec file unusable for CVS builds. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index cb2a32054..5860b5ae8 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,8 @@ FREESIDE_URL = "http://localhost/freeside/" #for now, same db as specified in DATASOURCE... eventually, otherwise? RT_DB_DATABASE = freeside +RPM_SPECFILE = install/rpm/freeside.spec + #--- @@ -348,6 +350,11 @@ clean: #release: upload-docs release: cd /home/ivan/freeside + + # Update the RPM specfile + perl -p -i -e "s/\d+[^\}]+/${VERSION}/ if /%define\s+version\s+(\d+[^\}]+)\}/;" ${RPM_SPECFILE} + cvs commit -m "Updated for ${VERSION}" ${RPM_SPECFILE} + #cvs tag ${TAG} cvs tag -F ${TAG} -- 2.20.1