[PATCH] Bugfix for for pkg/mac/complete-bundle.sh

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: pgAdmin Hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [PATCH] Bugfix for for pkg/mac/complete-bundle.sh
Date: 2005-10-24 01:34:51
Message-ID: 435C3A3B.2030501@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

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.

Please apply the following patch - it's already used for the nighty
builds, and produces working
bundles.

Index: pkg/mac/complete-bundle.sh
===================================================================
--- pkg/mac/complete-bundle.sh (revision 4597)
+++ pkg/mac/complete-bundle.sh (working copy)
@@ -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

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2005-10-24 07:37:36 SVN Commit by dpage: r4598 - trunk/pgadmin3/pkg/mac
Previous Message svn 2005-10-23 15:48:48 SVN Commit by andreas: r4597 - in trunk/pgadmin3/src: dlg slony slony/include