Sync
authorAndrew McNab <andrew.mcnab@manchester.ac.uk>
Wed, 20 Jun 2007 13:52:51 +0000 (13:52 +0000)
committerAndrew McNab <andrew.mcnab@manchester.ac.uk>
Wed, 20 Jun 2007 13:52:51 +0000 (13:52 +0000)
org.gridsite.core/src/make-gridsite-spec

index ef102ae..5be89bf 100755 (executable)
@@ -31,7 +31,7 @@ cat <<EOF >gridsite.spec
 Name: gridsite
 Version: ${PATCH_VERSION:-1.x.x}
 # This next piece of .spec/sed magic puts the build OS version in the release
-Release: 1%(sed 's/^\([A-Z]\)[^ ]* \([A-Z]\)[^0-9]*\([0-9][^ ]*\).*/\1\2\3/g' /etc/redhat-release | sed 's/[^A-Z,a-z,0-9]//g')
+Release: %(if [ "$RELEASE_VERSION" ] ; then echo $RELEASE_VERSION ; else sed 's/^\([A-Z]\)[^ ]* \([A-Z]\)[^0-9]*\([0-9][^ ]*\).*/1\1\2\3/g' /etc/redhat-release | sed 's/[^A-Z,a-z,0-9]//g' ; fi)
 Summary: GridSite
 License: Modified BSD
 Group: System Environment/Daemons