-
-
Save donthorp/724141 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Add this to your ~/.bash_profile | |
for a in `ls $HOME/.bash_profile.d/*.sh`; do | |
source $a | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Titanium specific environment settings / aliases | |
# Put this in ~/.bash_profile.d/ | |
export TI_MOBILE="/Users/marshall/Code/titanium_mobile" | |
export TI_KS="$TI_MOBILE/demos/KitchenSink" | |
export TI_SYS="/Library/Application Support/Titanium" | |
export TI_SYS_MOBILESDK="$TI_SYS/mobilesdk/osx" | |
export TI_DEV_MOBILESDK="$TI_MOBILE/dist/mobilesdk/osx" | |
export TI_SYS_VERSION=1.5.0 | |
export TI_SYS_SDK="$TI_SYS_MOBILESDK/$TI_SYS_VERSION" | |
export TI_DEV_VERSION=1.5.0 | |
export TI_DEV_SDK="$TI_DEV_MOBILESDK/$TI_DEV_VERSION" | |
alias ti='cd $TI_MOBILE' | |
alias ks='cd $TI_KS' | |
alias copy_ti_sdk='cp -r $TI_MOBILE/support/* $TI_DEV_SDK' | |
build_sdk() { | |
startdir=$PWD | |
ti | |
version=`python -c 'import sys; sys.path.append("build"); import titanium_version; sys.stdout.write(titanium_version.version)'` | |
scons $@ && cd dist && unzip -o mobilesdk-$version-osx.zip | |
cd "$startdir" | |
} | |
build_sdk_fast() { | |
build_sdk ant_targets=build android=1 | |
} | |
drillbit() { | |
build_sdk | |
"$TI_MOBILE/drillbit/drillbit.py" $@ | |
} | |
drillbit_fast() { | |
build_sdk ant_targets=build android=1 | |
"$TI_MOBILE/drillbit/drillbit.py" $@ | |
} | |
alias titanium='"$TI_SYS_SDK/titanium.py"' | |
alias builder='"$TI_SYS_SDK/android/builder.py"' | |
alias project='"$TI_SYS_SDK/project.py"' | |
alias dev_titanium='copy_ti_sdk; "$TI_DEV_SDK/titanium.py"' | |
alias dev_builder='copy_ti_sdk; "$TI_DEV_SDK/android/builder.py"' | |
alias dev_project='copy_ti_sdk; "$TI_DEV_SDK/project.py"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment