Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (37 sloc) 0.787 kB
pos=$(expr $1 : '[0-9,\.]*')
latest_version=${1:0:$pos}
mkdir sdk/$latest_version
mkdir sdk/$2
mkdir sdk/$3
mkdir working
cd working
mkdir $latest_version
mkdir $2
mkdir $3
function get_release {
cd $1
curl -O https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/addon-sdk-$1.tar.gz
tar -xf addon-sdk-$1.tar.gz
cd addon-sdk-$1
source bin/activate
cfx sdocs
tar -xf addon-sdk-docs.tgz
mv doc/* ../../../sdk/$1
cd ../../
}
# get the latest release
cd $latest_version
git clone https://github.com/mozilla/addon-sdk.git
cd addon-sdk
git checkout $1
source bin/activate
cfx sdocs --override-version=$latest_version
tar -xf addon-sdk-docs.tgz
mv doc/* ../../../sdk/$latest_version
cd ../../
get_release $2
get_release $3
rm -rf *
rm -rf .DS_Store
cd ..
rmdir working
Jump to Line
Something went wrong with that request. Please try again.