Skip to content

Instantly share code, notes, and snippets.

@chrislewis
Created August 14, 2011 18:10
Show Gist options
  • Select an option

  • Save chrislewis/1145143 to your computer and use it in GitHub Desktop.

Select an option

Save chrislewis/1145143 to your computer and use it in GitHub Desktop.
Install GAE SDK on most linux dists.
#!/bin/bash
# GAE
VER="1.5.2"
SRC="http://googleappengine.googlecode.com/files/appengine-java-sdk-$VER.zip"
# Local
SDK_ROOT=/usr/local/lib
FILE=`basename $SRC`
PKG=`basename $FILE .zip`
TMP=/tmp/$FILE
# Abstract home shell config to work across *nix (including osx).
curl $SRC > $TMP
(cd $SDK_ROOT && unzip $TMP && rm $TMP)
echo "export APPENGINE_SDK_HOME=$SDK_ROOT/$PKG" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment