commit 5a3c9247d8d1de1f5f27b63539d80e8871d56f36
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
diff --git a/development/LyX-Mac-binary-release.sh
b/development/LyX-Mac-binary-release.sh
index a7f0620..9f13ce1 100644
--- a/development/LyX-Mac-binary-release.sh
+++ b/development/LyX-Mac-binary-release.sh
@@ -803,10 +803,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"