Fixed 'include' to root of the distdir for existing directory.
authorPekka Riikonen <priikone@silcnet.org>
Sat, 30 Apr 2005 15:50:03 +0000 (15:50 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sat, 30 Apr 2005 15:50:03 +0000 (15:50 +0000)
apps/autodist/CHANGES
apps/autodist/autodist.in

index c5974f886e609d309eaa3c231be9d7d09904d899..fcb3687933cf06ef24e7c50ffa287a5323ee87fe 100644 (file)
@@ -10,6 +10,9 @@ Sat Apr 30 11:49:01 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
        * Fixed .ad processing when the file was not processed, to
          copy the original to new name.
 
+       * Fixed 'include' when copying directories to root of the
+         distdir, and the destination directory already exist.
+
 Fri Apr 29 16:48:16 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
 
        * Fixed configure.ac creation when no fragments in use.
index fa7a714a9fe68630553dfbb2bc4764eb337cbbb0..12c9cabcaa0640d89c6c315c0cd046d0855884dc 100755 (executable)
@@ -621,17 +621,22 @@ ad_dist_includes()
 
       if test "$src" = "$dst"; then
        # Add to same location
-        d=`echo $src | sed 's,/[^/]*$,,'`
-        ds=`echo $src | sed 's/\/$//'`
-        if test "$ds" = "$d"; then
+       d=`echo $src | sed 's,/[^/]*$,,'`
+       ds=`echo $src | sed 's/\/$//'`
+       if test "$ds" = "$d"; then
           d=`echo $d | sed 's,/[^/]*$,,'`
-        fi
-        if test '!' -d $am_distdir/$d && test "$ds" != "$d"; then
+       fi
+       if test "$ds" = "$d"; then
+         d=""
+       fi
+       if test '!' -d $am_distdir/$d && test "$ds" != "$d"; then
           mkdir -p $am_distdir/$d || exit 1
-        fi
+       fi
+echo $d
+echo $ds
 
-        ad_log "  $src into $am_distdir/$d"
-        cp -pR $src $am_distdir/$d || exit 1
+       ad_log "  $src into $am_distdir/$d"
+       cp -pR $src $am_distdir/$d || exit 1
       else
        # Add to different location
         check=`echo "$dst" | sed 's/?//; s/*//; s/\[//; s/\]//'`
@@ -954,7 +959,10 @@ ad_makedist()
 
   # Include specific license file if specified
   if test "$license" != ""; then
-    ad_log "License file in distribution is $am_distdir/COPYING"
+    ad_log ""
+    ad_log "License file in distribution:"
+    ad_log "-----------------------------"
+    ad_log "  $license into $am_distdir/COPYING"
     cp -p $license $am_distdir/COPYING || exit 1
   fi