Skip to content

Commit

Permalink
CLJS-161: updated bootstrap to use recent Google Closure Library.
Browse files Browse the repository at this point in the history
  • Loading branch information
neotyk authored and David Nolen committed May 9, 2012
1 parent 5ad58eb commit 7123171
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions script/bootstrap
Expand Up @@ -17,10 +17,33 @@ rm clojure-1.3.0.zip
echo "Fetching Google Closure library..."
mkdir -p closure/library
cd closure/library
curl -O -s http://closure-library.googlecode.com/files/closure-library-20110323-r790.zip
unzip -qu closure-library-20110323-r790.zip
echo "Cleaning up Google Closure library archive..."
rm closure-library-20110323-r790.zip
if [ "x$1" = "x--closure-library-head" ] ; then
echo "Building against HEAD of Google Closure library..."

# Check if svn present
type svn >/dev/null 2>&1 || { echo >&2 "Need svn command to checkout HEAD of Google Closure library. Aborting."; exit 1; }

# Existing checkout?
set +e
svn info --non-interactive >/dev/null 2>&1
declare -i r=$?
set -e
if [ 0 -eq $r ] ; then
echo "Updating Google Closure library from HEAD..."
svn update -q --non-interactive
else
echo "Checking out HEAD of Google Closure library..."
rm -rf *
svn checkout -q --non-interactive http://closure-library.googlecode.com/svn/trunk/ ./
fi
else
echo "Fetching Google Closure library..."
f=closure-library-20111110-r1376.zip
curl -O -s http://closure-library.googlecode.com/files/$f
unzip -qu $f
echo "Cleaning up Google Closure library archive..."
rm $f
fi
cd ..

echo "Fetching Google Closure compiler..."
Expand Down

0 comments on commit 7123171

Please sign in to comment.