diff options
author | Graham Leggett <minfrin@apache.org> | 2003-03-30 20:57:35 +0200 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2003-03-30 20:57:35 +0200 |
commit | d1977887991ea4cdb333d9772423959e147d8c99 (patch) | |
tree | e0b299ebe2527174cfa9f214805e07b04c270514 /buildconf | |
parent | Simplify and shorten the code path for scanning request headers (diff) | |
download | apache2-d1977887991ea4cdb333d9772423959e147d8c99.tar.xz apache2-d1977887991ea4cdb333d9772423959e147d8c99.zip |
Added an RPM build script
PR:
Obtained from: Joe Orton <jorton@redhat.com>
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -181,4 +181,19 @@ echo rebuilding configure rm -f config.cache ${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning" +echo rebuilding rpm spec file +( VMMN=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include \`pwd\`/include/ap_mmn.h | grep -e '^[0-9]'` + REVISION=`echo AP_SERVER_MAJORVERSION.AP_SERVER_MINORVERSION.AP_SERVER_PATCHLEVEL | cpp -include \`pwd\`/include/ap_release.h | tr -d "\" " | grep -e '^[0-9.\-]'` + 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 ) + exit 0 |