You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Greg Stein <gs...@lyra.org> on 2004/07/02 02:28:55 UTC
Re: cvs commit: apr-util/build/rpm apr-util.spec.in
On Thu, Jul 01, 2004 at 10:45:06PM -0000, minfrin@apache.org wrote:
>...
> +++ buildconf 1 Jul 2004 22:45:06 -0000 1.13
> @@ -74,3 +74,20 @@
>
> # Remove autoconf cache again
> rm -rf autom4te*.cache
> +
> +# Create RPM Spec file
> +if [ -f `which cut` ]; then
> + echo rebuilding rpm spec file
> + ( REVISION=`build/get-version.sh all include/apu_version.h APU`
> + 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/apr-util.spec.in | \
> + sed -e "s/APU_VERSION/$VERSION/" \
> + -e "s/APU_RELEASE/$RELEASE/" \
> + > apr-util.spec )
> +fi
There is no need for the parens. That's just some extra baggage...
Cheers,
-g
--
Greg Stein, http://www.lyra.org/