diff --git a/Rakefile b/Rakefile index d671907..7ffcced 100644 --- a/Rakefile +++ b/Rakefile @@ -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{ diff --git a/xcodebuild-wrapper.sh b/xcodebuild-wrapper.sh index 82f7128..d55323c 100755 --- a/xcodebuild-wrapper.sh +++ b/xcodebuild-wrapper.sh @@ -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