[freeside-commits] freeside Makefile,1.154,1.155
Richard Siddall
rsiddall at wavetail.420.am
Wed Apr 2 10:00:24 PDT 2008
Update of /home/cvs/cvsroot/freeside
In directory wavetail.420.am:/tmp/cvs-serv19349
Modified Files:
Makefile
Log Message:
Quick fix to update the release version number in the RPM specfile.
This leaves the specfile unusable for CVS builds.
Index: Makefile
===================================================================
RCS file: /home/cvs/cvsroot/freeside/Makefile,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- Makefile 1 Apr 2008 09:40:15 -0000 1.154
+++ Makefile 2 Apr 2008 17:00:22 -0000 1.155
@@ -103,6 +103,8 @@
#for now, same db as specified in DATASOURCE... eventually, otherwise?
RT_DB_DATABASE = freeside
+RPM_SPECFILE = rpm/freeside.spec
+
#---
@@ -346,6 +348,11 @@
#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}
More information about the freeside-commits
mailing list