From: Tom Yu Date: Tue, 3 Sep 2002 20:12:04 +0000 (+0000) Subject: * mkrel: set -e to catch errors. Only build and clean autoconf if X-Git-Tag: krb5-1.3-alpha1~432 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f5895d107b6b5afcd3c5847cc3d30dc2cb6af896;p=krb5.git * mkrel: set -e to catch errors. Only build and clean autoconf if it exists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14817 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ChangeLog b/src/util/ChangeLog index b350a5862..67582fd7a 100644 --- a/src/util/ChangeLog +++ b/src/util/ChangeLog @@ -1,3 +1,8 @@ +2002-09-03 Tom Yu + + * mkrel: set -e to catch errors. Only build and clean autoconf if + it exists. + 2002-08-30 Ken Raeburn * Makefile.in (MY_SUBDIRS) [##WIN32##]: Hide variable definition diff --git a/src/util/mkrel b/src/util/mkrel index a086450fa..6b472607d 100644 --- a/src/util/mkrel +++ b/src/util/mkrel @@ -1,4 +1,5 @@ #!/bin/sh +set -e repository=:kserver:cvs.mit.edu:/cvs/krbdev dodoc=t dosrc=t @@ -67,6 +68,7 @@ krb5-*.*-current) krb5-*.*-*) release=`echo $reldir|sed -e 's/krb5-//'` relhead=`echo $release|sed -e 's/-.*//'` + reltail=`echo $release|sed -e 's/.*-//'` relmajor=`echo $relhead|awk -F. '{print $1}'` relminor=`echo $relhead|awk -F. '{print $2}'` ;; @@ -96,16 +98,19 @@ if test $checkout = t; then fi if test $dosrc = t; then - echo "Building autoconf..." - (cd $reldir/src/util/autoconf - M4=gm4 ./configure - make) - + if test -d $reldir/src/util/autoconf; then + echo "Building autoconf..." + (cd $reldir/src/util/autoconf + M4=gm4 ./configure + make) + fi echo "Creating configure scripts..." (cd $reldir/src; util/reconf) - echo "Cleaning src/util/autoconf..." - (cd $reldir/src/util/autoconf; make distclean) + if test -d $reldir/src/util/autoconf; then + echo "Cleaning src/util/autoconf..." + (cd $reldir/src/util/autoconf; make distclean) + fi fi echo "Editing release-specific files..."