summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsiddall <rsiddall>2008-04-02 17:00:22 +0000
committerrsiddall <rsiddall>2008-04-02 17:00:22 +0000
commitdec6029a770e07d3485e9ebd1549bd52c71220e8 (patch)
tree5b4861d1495dcdcf8dfde3a7df91ff27f53729ab
parent72306cb82dd7f1d98f80886e084df8af080d8bca (diff)
Quick fix to update the release version number in the RPM specfile.
This leaves the specfile unusable for CVS builds.
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 17a92c5f7..07b3aeadd 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,8 @@ FREESIDE_URL = "http://localhost/freeside/"
#for now, same db as specified in DATASOURCE... eventually, otherwise?
RT_DB_DATABASE = freeside
+RPM_SPECFILE = rpm/freeside.spec
+
#---
@@ -346,6 +348,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}