[X2Go-Commits] [x2goclient] 89/139: macbuild.sh: fix removal of base prefix in deduplication if base prefix ends in a slash.

git-admin at x2go.org git-admin at x2go.org
Sun Jan 17 06:03:17 CET 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit 9659b6b9568dfcdb66d02f2439db6bc60cf435db
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Sep 30 23:30:48 2015 +0200

    macbuild.sh: fix removal of base prefix in deduplication if base prefix ends in a slash.
---
 debian/changelog |    2 ++
 macbuild.sh      |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7db72bd..d64ab8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -174,6 +174,8 @@ x2goclient (4.0.5.1-0x2go1) UNRELEASED; urgency=low
       functionality "for real", not just as a dry-run.
     - macbuild.sh: spelling fix.
     - macbuild.sh: more more debug messages and a whitespace change.
+    - macbuild.sh: fix removal of base prefix in deduplication if base prefix
+      ends in a slash.
   * debian/control:
     - Change apache2-dev | libc6-dev build dependency back to apache2-dev
       only. Otherwise, apache2-dev is not installed at all, even though
diff --git a/macbuild.sh b/macbuild.sh
index 64e9dc8..980400e 100755
--- a/macbuild.sh
+++ b/macbuild.sh
@@ -379,7 +379,7 @@ if [ "${BUNDLE}" = "1" ]; then
 
   typeset -a top_files
   for entry in "${all_files[@]}"; do
-    typeset relative_path="${entry##"${base_dir}/"}"
+    typeset relative_path="${entry##"$(lazy_canonical_path "${base_dir}/")"}"
     typeset tmp_regex='^[^/]+$'
     echo "Checking ${relative_path} against regex '${tmp_regex}'"
     if [[ "${relative_path}" =~ ${tmp_regex} ]]; then
@@ -390,7 +390,7 @@ if [ "${BUNDLE}" = "1" ]; then
 
   typeset -a duplicates
   for entry in "${all_files[@]}"; do
-    typeset relative_path="${entry##"${base_dir}/"}"
+    typeset relative_path="${entry##"$(lazy_canonical_path "${base_dir}/")"}"
     typeset file_name="$(basename "${entry}")"
     typeset top_entry=""
     for top_entry in "${top_files[@]}"; do
@@ -432,7 +432,7 @@ if [ "${BUNDLE}" = "1" ]; then
     typeset -i i="0"
     for i in "${!all_files[@]}"; do
       typeset all_entry="${all_files[${i}]}"
-      typeset relative_path="${all_entry##"${base_dir}/"}"
+      typeset relative_path="${all_entry##"$(lazy_canonical_path "${base_dir}/")"}"
       if [ "${relative_path}" = "${entry}" ]; then
         unset all_files[${i}]
       fi

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list