Deleted Added
full compact
buildconf (302408) buildconf (362181)
1#!/bin/sh
2# Licensed to the Apache Software Foundation (ASF) under one or more
3# contributor license agreements. See the NOTICE file distributed with
4# this work for additional information regarding copyright ownership.
5# The ASF licenses this file to You under the Apache License, Version 2.0
6# (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8#

--- 98 unchanged lines hidden (view full) ---

107
108echo "buildconf: creating configure ..."
109### do some work to toss config.cache?
110${AUTOCONF:-autoconf} $verbose
111
112# Remove autoconf 2.5x's cache directory
113rm -rf autom4te*.cache
114
1#!/bin/sh
2# Licensed to the Apache Software Foundation (ASF) under one or more
3# contributor license agreements. See the NOTICE file distributed with
4# this work for additional information regarding copyright ownership.
5# The ASF licenses this file to You under the Apache License, Version 2.0
6# (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8#

--- 98 unchanged lines hidden (view full) ---

107
108echo "buildconf: creating configure ..."
109### do some work to toss config.cache?
110${AUTOCONF:-autoconf} $verbose
111
112# Remove autoconf 2.5x's cache directory
113rm -rf autom4te*.cache
114
115PYTHON=${PYTHON-`build/PrintPath python3 python2 python`}
116
115echo "buildconf: generating 'make' outputs ..."
117echo "buildconf: generating 'make' outputs ..."
116build/gen-build.py $verbose make
118${PYTHON} build/gen-build.py $verbose make
117
118# Create RPM Spec file
119if [ -f `which cut` ]; then
120 echo "buildconf: rebuilding rpm spec file"
121 ( REVISION=`build/get-version.sh all include/apr_version.h APR`
122 VERSION=`echo $REVISION | cut -d- -s -f1`
123 RELEASE=`echo $REVISION | cut -d- -s -f2`
124 if [ "x$VERSION" = "x" ]; then
125 VERSION=$REVISION
126 RELEASE=1
127 fi
128 cat ./build/rpm/apr.spec.in | \
129 sed -e "s/APR_VERSION/$VERSION/" \
130 -e "s/APR_RELEASE/$RELEASE/" \
131 > apr.spec )
132fi
133
134exit 0
119
120# Create RPM Spec file
121if [ -f `which cut` ]; then
122 echo "buildconf: rebuilding rpm spec file"
123 ( REVISION=`build/get-version.sh all include/apr_version.h APR`
124 VERSION=`echo $REVISION | cut -d- -s -f1`
125 RELEASE=`echo $REVISION | cut -d- -s -f2`
126 if [ "x$VERSION" = "x" ]; then
127 VERSION=$REVISION
128 RELEASE=1
129 fi
130 cat ./build/rpm/apr.spec.in | \
131 sed -e "s/APR_VERSION/$VERSION/" \
132 -e "s/APR_RELEASE/$RELEASE/" \
133 > apr.spec )
134fi
135
136exit 0