pull up r23726 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 16 Feb 2010 23:01:30 +0000 (23:01 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 16 Feb 2010 23:01:30 +0000 (23:01 +0000)
 ------------------------------------------------------------------------
 r23726 | tlyu | 2010-02-16 17:41:27 -0500 (Tue, 16 Feb 2010) | 8 lines

 ticket: 6663
 subject: update mkrel to deal with changed source layout
 target_version: 1.8
 tags: pullup

 Update mkrel so it deals somewhat better with removed src/lib/des425,
 NOTICES, etc.

ticket: 6663
version_fixed: 1.8
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-8@23727 dc483132-0cff-0310-8789-dd5450dbe970

src/util/mkrel

index ca91087671e16b0a2e8b27ba1b83b678838a2ebe..8d00357bdea62acb368e905bb850d2db389ece11 100755 (executable)
@@ -200,6 +200,12 @@ fi
 echo "Generating tarfiles..."
 GZIP=-9; export GZIP
 if test $multitar = t; then
+       if test -d $reldir/src/lib/des425; then
+               des425=$reldir/src/lib/des425
+       fi
+       if test -f $reldir/NOTICE;
+               then notice=$reldir/NOTICE
+       fi
        if test $dosrc = t; then
                gtar --exclude $reldir/src/lib/crypto \
                        --exclude $reldir/src/lib/des425 \
@@ -208,10 +214,10 @@ if test $multitar = t; then
 
                gtar zcf ${reldir}.crypto.tar.gz \
                        $reldir/src/lib/crypto \
-                       $reldir/src/lib/des425
+                       $des425
        fi
        if test $dodoc = t; then
-               gtar zcf ${reldir}.doc.tar.gz $reldir/doc $reldir/README
+               gtar zcf ${reldir}.doc.tar.gz $reldir/doc $reldir/README $notice
        fi
        ls -l ${reldir}.*.tar.gz
 fi