SVN Commit by dpage: r4598 - trunk/pgadmin3/pkg/mac - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by dpage: r4598 - trunk/pgadmin3/pkg/mac
Date
Msg-id 200510240737.j9O7baqk001130@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
Author: dpage
Date: 2005-10-24 08:37:35 +0100 (Mon, 24 Oct 2005)
New Revision: 4598

Modified:
   trunk/pgadmin3/pkg/mac/complete-bundle.sh
Log:
The hardcoded "todo=../src/pgadmin3" in complete-bundle.sh is wrong.
complete-bundle.sh adjusts the library path _inside_ the binary besides copying the lib
into the bundle. If ../src/pgadmin3, instead of Contents/MacOS/pgAdmin3 is fixed up by
complete-bundle.sh, the resulting bundle will not start on because it can't find the
dynamically linked libs.
[Florian G. Pflug]

Modified: trunk/pgadmin3/pkg/mac/complete-bundle.sh
===================================================================
--- trunk/pgadmin3/pkg/mac/complete-bundle.sh    2005-10-23 15:48:48 UTC (rev 4597)
+++ trunk/pgadmin3/pkg/mac/complete-bundle.sh    2005-10-24 07:37:35 UTC (rev 4598)
@@ -12,10 +12,10 @@
 cd "$bundle"
 fw_basepath=$(dirname $(pwd))
 todo=$(find ./ | \
-    xargs file | \
-    sed -n 's/^\([^:][^:]*\):[[:space:]]*Mach-O executable ppc$/\1/p' \
+        xargs --replace=line file 'line' | \
+        sed -n 's/^\([^:][^:]*\):[[:space:]]*Mach-O executable ppc$/\1/p' | \
+        xargs echo -n \
 )
-todo=../src/pgadmin3

 echo "Found executables: $todo"
 while test "$todo" != ""; do


pgadmin-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: [PATCH] Bugfix for for pkg/mac/complete-bundle.sh
Next
From: "Dave Page"
Date:
Subject: Re: [PATCH] Bugfix for for pkg/mac/complete-bundle.sh