Skip to content

Commit

Permalink
fixed a simulator starting bug when the executable name appears multi…
Browse files Browse the repository at this point in the history
…ple times in the build output.
  • Loading branch information
toothbrush committed Oct 25, 2011
1 parent 8981209 commit b9d0084
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Rakefile
Expand Up @@ -33,6 +33,12 @@ def xcodebuild
end

# later we could add actions like "just build" or "archive" here.
desc 'Clean'
task :clean do |t|
puts %x{
echo "unimplemented"
}
end
desc 'Build the default target using the default configuration'
task :build do |t|
puts %x{
Expand Down
2 changes: 1 addition & 1 deletion xcodebuild-wrapper.sh
Expand Up @@ -40,7 +40,7 @@ if [ $resultcode -ne 0 ]; then
fi

# find the name of the executable in the output. Ugly, but works.
executable=`echo "$buildresult" | egrep "(Touch|SetMode).*app" | awk ' { print $NF } '`
executable=`echo "$buildresult" | egrep "(Touch|SetMode).*app" | awk ' NR==1 { print $NF } '`
echo "This produced the executable:" >&2
echo $executable >&2

Expand Down

0 comments on commit b9d0084

Please sign in to comment.