Updating branch refs/heads/master
         to b68b092c514c9a406d4cff63391629222de1c0c2 (commit)
       from d1521639573565b9a11ad2364a55d958cb9a4cb0 (commit)

commit b68b092c514c9a406d4cff63391629222de1c0c2
Author: Paweł Forysiuk <tuxa...@o2.pl>
Date:   Sat Feb 11 22:33:49 2012 +0100

    makedist.midori: Dereference symlinks when copying

 win32/makedist/makedist.midori |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/win32/makedist/makedist.midori b/win32/makedist/makedist.midori
index a22aa07..eedf52b 100755
--- a/win32/makedist/makedist.midori
+++ b/win32/makedist/makedist.midori
@@ -65,7 +65,7 @@ dll_recursive ()
   while [ "x`sha1sum - < $temp_file_new`" != "x`sha1sum - < $temp_file_old`" ]
   do
     files=`cat $temp_file_new $temp_file_old | sort | uniq -u`
-    cp $temp_file_new $temp_file_old
+    cp -L $temp_file_new $temp_file_old
     strings $files 2> /dev/null | grep \\.dll | cat - $temp_file_old | sort | 
uniq > $temp_file_new
   done
 
@@ -80,7 +80,7 @@ grab_files ()
    pushd $root_dir > /dev/null
    shift
    while [ "$1" ]; do
-       find $dir "(" -name "$1" ")" -prune -exec mkdir -p $workdir/{} ";" 
-exec rmdir --ignore-fail-on-non-empty $workdir/{} ";" -exec cp -r {} 
$workdir/{} ";"
+       find $dir "(" -name "$1" ")" -prune -exec mkdir -p $workdir/{} ";" 
-exec rmdir --ignore-fail-on-non-empty $workdir/{} ";" -exec cp -Lr {} 
$workdir/{} ";"
        shift
    done
    popd > /dev/null
@@ -107,7 +107,7 @@ echo -n .
 # copy auto generate dll list
 pushd $root_dir/bin > /dev/null
 mkdir $workdir/bin
-cp $files $workdir/bin
+cp -L $files $workdir/bin
 popd > /dev/null
 
 echo -n .
@@ -161,7 +161,7 @@ popd > /dev/null
 echo -n .
 
 # copy doc files to root
-cp $workdir/share/doc/midori/{COPYING,AUTHORS} $workdir
+cp -L $workdir/share/doc/midori/{COPYING,AUTHORS} $workdir
 
 echo -n .
 
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to