Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Rewrite the todo search to be a) a lot more simple and b) compatible …
Browse files Browse the repository at this point in the history
…with any architecture.

git-svn-id: svn://svn.pgadmin.org/trunk@5062 a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information
dpage committed Mar 29, 2006
1 parent 170c57a commit b36e07f
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions pkg/mac/complete-bundle.sh
Expand Up @@ -10,25 +10,12 @@ test -d "$bundle/Contents/Frameworks" || mkdir -p "$bundle/Contents/Frameworks"

echo "Completing bundle: $bundle"

GNUXARGS=`xargs --version 2> /dev/null | grep -c GNU`

cd "$bundle"

if test "$GNUXARGS" = "1"; then
todo=$(find ./ -perm +0111 ! -type d | \
xargs --replace=line file 'line' | \
sed -n 's/^\([^:][^:]*\):[[:space:]]*Mach-O executable ppc$/\1/p' | \
xargs echo -n \
)
else
todo=$(find ./ -perm +0111 ! -type d | \
xargs -J line file 'line' | \
sed -n 's/^\([^:][^:]*\):[[:space:]]*Mach-O executable ppc$/\1/p' | \
xargs echo -n \
)
fi
todo=$(file `find ./ -perm +0111 ! -type d` | grep "Mach-O executable" | awk -F: '{printf "%s ",$1;next} {print}')

echo "Found executables: $todo"

while test "$todo" != ""; do
todo_old=$todo ;
todo="" ;
Expand Down

0 comments on commit b36e07f

Please sign in to comment.