From c401e515b0bbe734fc39517a4d25c96ce487bef4 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 4 Jan 2010 22:45:45 +0000 Subject: Copy binaries into app dir along with libraries. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1788 --- pkg/osx/cp-with-libs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 pkg/osx/cp-with-libs (limited to 'pkg/osx/cp-with-libs') diff --git a/pkg/osx/cp-with-libs b/pkg/osx/cp-with-libs new file mode 100755 index 00000000..902ae079 --- /dev/null +++ b/pkg/osx/cp-with-libs @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Copy a program to the specified destination, along +# with SDL libraries it depends upon. + +BINARY=$1 +DEST=$2 + +cp "$BINARY" "$DEST" + +# Copy libraries; only those with libSDL in the name + +otool -L "$BINARY" | grep libSDL | sed 's/^.//; s/(.*//' | while read; do + cp "$REPLY" "$DEST" +done + -- cgit v1.2.3