Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (53 sloc) 2.04 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/"
# TM_IGNORE_WARNINGS is a sequence of glob patterns of files in which to ignore
# warnings. Right now it doesn't support escaped ':" -- the separator character.
# export TM_IGNORE_WARNINGS="mitchcode_*.h:*/MitchCode/*"
# Look at other bundles to see if there are conventions for using 'defaults'.
lastTarget=`defaults read ${PREF_DOMAIN} last_target`
res=$(CocoaDialog inputbox --title "Target" \
--informative-text "Build Target:" \
--text "${lastTarget}" \
--button1 "Build" --button2 "Cancel")
[[ $(head -n1 &lt;&lt;&lt;"$res") == "2" ]] &amp;&amp; exit_discard
reslines=`(wc -l &lt;&lt;&lt;"$res")|sed -e 's/ //g'`
[[ "${reslines}" == "2" ]] &amp;&amp; target=$(tail -n1 &lt;&lt;&lt;"$res")
defaults write ${PREF_DOMAIN} last_target -string "${target}"
defaults write ${PREF_DOMAIN} last_build_dir -string "${TM_DIRECTORY}"
# Allow spaces to delimit arguments in ${target} -- bad idea?
python -u "${TM_BUNDLE_SUPPORT}/bin/" ${target}</string>
<string>attr.project.scons - (text dyn.selection)</string>