* mkrel: set -e to catch errors. Only build and clean autoconf if
authorTom Yu <tlyu@mit.edu>
Tue, 3 Sep 2002 20:12:04 +0000 (20:12 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 3 Sep 2002 20:12:04 +0000 (20:12 +0000)
it exists.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14817 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ChangeLog
src/util/mkrel

index b350a5862b844acd97b948f88128cd8a7ad8c5b1..67582fd7a20e382a8c669f95f987896911da022c 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-03  Tom Yu  <tlyu@mit.edu>
+
+       * mkrel: set -e to catch errors.  Only build and clean autoconf if
+       it exists.
+
 2002-08-30  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (MY_SUBDIRS) [##WIN32##]: Hide variable definition
index a086450fa4ea0e678668d7c7f136d939a477eade..6b472607d5cf150fd6a343a23d0ab52fd5715c1f 100644 (file)
@@ -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..."