public
Last active — forked from /jpscripts.txt

Bash scripts to drive cfx without having to activate the jetpack environment.

  • Download Gist
jpscripts.sh
Shell
1 2 3 4 5 6 7 8 9 10
#!/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" $@
jpscripts2.sh
Shell
1 2 3 4 5 6 7 8 9
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.