-
-
Save jeffgca/1390097 to your computer and use it in GitHub Desktop.
Bash scripts to drive cfx without having to activate the jetpack environment.
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 | |
# edit these variables to match your own use case. | |
PY=`which python` | |
CFX="$HOME/code/jetpack/addon-sdk/bin/cfx" | |
#CFX="$HOME/code/jetpack/testing/addon-sdk-1.2b1/bin/cfx" | |
FF="/Applications/Aurora.app" | |
P="$HOME/Library/Application\ Support/Firefox/Profiles/b271f03z.Firebug" | |
$PY $CFX --binary=$FF --profiledir="$P" $@ | |
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 | |
# This script: | |
# 1. creates a directory using the first argument as the name. | |
# 2. runs cfx init to create a skeleton add-on | |
# 3. zeros out the sample code to leave us with nice clean blank files. | |
_PWD=`pwd` | |
mkdir -p "$_PWD/$1" && cd "$_PWD/$1" && jetpack init | |
echo "" > lib/main.js && echo "" > doc/main.md && echo "" > test/test-main.js && echo "" > ./README.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment