From: rsiddall Date: Wed, 2 Apr 2008 16:57:57 +0000 (+0000) Subject: Quick fix to update the release version number in the RPM spec file. X-Git-Tag: freeside_1_7_3rc2~8 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=e280f1a49c58d194006c01459263f464e6616e57;p=freeside.git Quick fix to update the release version number in the RPM spec file. This leaves the spec file unusable for CVS builds. --- 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}