summaryrefslogtreecommitdiffstats
path: root/buildconf
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2009-09-25 23:02:33 +0200
committerGraham Leggett <minfrin@apache.org>2009-09-25 23:02:33 +0200
commita8c86736ef7538f71a29c139e02e2cefa855457e (patch)
treeb3c4e534584655fa083c46abc978a7ca9e145bd0 /buildconf
parentHmmm... forgot git commit/dcommit. (diff)
downloadapache2-a8c86736ef7538f71a29c139e02e2cefa855457e.tar.xz
apache2-a8c86736ef7538f71a29c139e02e2cefa855457e.zip
Add support for an "epoch" in the RPM spec file. This epoch is a discrete
number used to determine if one RPM is newer than another, which in turn ensures that v1.2.10 is always interpreted as newer than v1.2.9. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@819008 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index 343983f3b8..ad43fe53c9 100755
--- a/buildconf
+++ b/buildconf
@@ -198,6 +198,7 @@ rm -rf autom4te*.cache
if [ -f `which cut` ]; then
echo rebuilding rpm spec file
( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
+ EPOCH=`build/get-version.sh epoch include/ap_release.h AP_SERVER`
REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
VERSION=`echo $REVISION | cut -d- -s -f1`
RELEASE=`echo $REVISION | cut -d- -s -f2`
@@ -209,6 +210,7 @@ if [ -f `which cut` ]; then
sed -e "s/APACHE_VERSION/$VERSION/" \
-e "s/APACHE_RELEASE/$RELEASE/" \
-e "s/APACHE_MMN/$VMMN/" \
+ -e "s/APACHE_EPOCH/$EPOCH/" \
> httpd.spec )
fi