summaryrefslogtreecommitdiffstats
path: root/buildconf
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2003-04-12 19:28:55 +0200
committerGraham Leggett <minfrin@apache.org>2003-04-12 19:28:55 +0200
commitf54208ac441ce3abce08a0344f11ea3c4b34a195 (patch)
treec82d83a46d56b67ac46b0cc4766a8c051d6e8da5 /buildconf
parentremove the relativepath element from the documents. (diff)
downloadapache2-f54208ac441ce3abce08a0344f11ea3c4b34a195.tar.xz
apache2-f54208ac441ce3abce08a0344f11ea3c4b34a195.zip
Add code to buildconf that produces an httpd.spec file from
httpd.spec.in, using build/get-version.sh from APR. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99346 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf17
1 files changed, 17 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index 71808600d0..3bfb09b274 100755
--- a/buildconf
+++ b/buildconf
@@ -181,4 +181,21 @@ echo rebuilding configure
rm -f config.cache
${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
+if [ -f `which cut` ]; then
+ echo rebuilding rpm spec file
+ ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
+ 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`
+ if [ "x$VERSION" = "x" ]; then
+ VERSION=$REVISION
+ RELEASE=1
+ fi
+ cat ./build/rpm/httpd.spec.in | \
+ sed -e "s/APACHE_VERSION/$VERSION/" \
+ -e "s/APACHE_RELEASE/$RELEASE/" \
+ -e "s/APACHE_MMN/$VMMN/" \
+ > httpd.spec )
+fi
+
exit 0