commit ad79120210891c26dc5f506d7036931ae6d8c4f9
Author: Stephan Witt <[email protected]>
Date:   Fri Jul 24 18:41:26 2015 +0200

    correct symlink creation - make them relative instead of absolute
    follow up of f45202acde6a98d9338f162f8ba917b2432580aa
    (cherry picked from commit 5a3c9247d8d1de1f5f27b63539d80e8871d56f36)

diff --git a/development/LyX-Mac-binary-release.sh 
b/development/LyX-Mac-binary-release.sh
index 18d394d..848c649 100644
--- a/development/LyX-Mac-binary-release.sh
+++ b/development/LyX-Mac-binary-release.sh
@@ -781,10 +781,14 @@ deduplicate() {
        find "$@" -type f -print | while read file ; do
                echo $(md5 -q "$file") "$file"
        done | sort | while read hash file ; do
-               if [ "$phash" = "$hash" ]; then
+               ppath=$(dirname "$pfile")
+               path=$(dirname "$file")
+               if [ "$phash" = "$hash" -a "$ppath" = "$path" ]; then
+                       pname=$(basename "$pfile")
+                       name=$(basename "$file")
                        cmp -s "$pfile" "$file" && (
                                rm "$file"
-                               ln -s "$pfile" "$file" && echo link for "$file" 
created
+                               cd "$path" && ln -s "$pname" "$name" && echo 
link for "$file" created
                        )
                fi
                phash="$hash"

Reply via email to