diff options
author | Graham Leggett <minfrin@apache.org> | 2003-04-12 19:28:55 +0200 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2003-04-12 19:28:55 +0200 |
commit | f54208ac441ce3abce08a0344f11ea3c4b34a195 (patch) | |
tree | c82d83a46d56b67ac46b0cc4766a8c051d6e8da5 /buildconf | |
parent | remove the relativepath element from the documents. (diff) | |
download | apache2-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-x | buildconf | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |