mkrel should only generate doc/CHANGES for checkouts
authorTom Yu <tlyu@mit.edu>
Tue, 27 Jun 2006 22:01:22 +0000 (22:01 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 27 Jun 2006 22:01:22 +0000 (22:01 +0000)
* src/util/mkrel: Only write doc/CHANGES if doing a checkout.
This makes nightly snapshots saner.

ticket: new
tags: pullup
target_version: 1.5

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

src/util/mkrel

index e8b2be29f6466fe91bb11a082e30dc558091e069..2384b7dee0b9d43cfc4fd2a4567673e13b731b76 100755 (executable)
@@ -146,7 +146,9 @@ if test $newstyle = t; then
                sed -e '/RELDATE/c\
 #define KRB5_RELDATE "'"$reldate"'"' patchlevel.h > patchlevel.h.new && \
                mv patchlevel.h.new patchlevel.h)
-       (cd $reldir && svn log -v $repository/$reltag > doc/CHANGES)
+       if test $checkout = t; then
+               (cd $reldir && svn log -v $repository/$reltag > doc/CHANGES)
+       fi
 else
 
        (cd $reldir/src/lib/krb5/krb && \