You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/11/20 14:07:40 UTC

svn commit: r105960 - apr/apr-util/trunk

Author: jorton
Date: Sat Nov 20 05:07:39 2004
New Revision: 105960

Modified:
   apr/apr-util/trunk/buildconf
Log:
* buildconf: Set -e flag to exit on any error.  Remove unnecessary
sub-shell for creating apr-util.spec.


Modified: apr/apr-util/trunk/buildconf
==============================================================================
--- apr/apr-util/trunk/buildconf	(original)
+++ apr/apr-util/trunk/buildconf	Sat Nov 20 05:07:39 2004
@@ -49,6 +49,8 @@
   exit 1
 fi
 
+set -e
+
 # Remove some files, then copy them from apr source tree
 rm -f build/apr_common.m4 build/find_apr.m4 build/install.sh \
       build/config.guess build/config.sub
@@ -102,16 +104,14 @@
 # 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
+  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
+  sed -e "s/APU_VERSION/$VERSION/" -e "s/APU_RELEASE/$RELEASE/" \
+    ./build/rpm/apr-util.spec.in > apr-util.spec
 fi