source: Dev/branches/rest-dojo-ui/client/util/buildscripts/cdnBuild.sh @ 257

Last change on this file since 257 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2
3# only run this in a pristine export of an svn tag.
4# It should only be run on unix, more specifically, where sha1sum is available.
5
6#version should be something like 0.9.0beta or 0.9.0, should match the name of the svn export.
7version=$1
8
9if [ -z $version ]; then
10    echo "Please pass in a version number"
11    exit 1
12fi
13
14dobuild() {
15        java -classpath ../shrinksafe/js.jar:../shrinksafe/shrinksafe.jar org.mozilla.javascript.tools.shell.Main ../../dojo/dojo.js baseUrl=../../dojo load=build profile=standard releaseName=$1 cssOptimize=comments.keepLines optimize=shrinksafe stripConsole=normal version=$1 copyTests=false mini=true action=release
16        mv ../../release/$1 ../../release/$1-cdn
17        cd ../../release/$1-cdn
18        zip -rq $1.zip $1/*
19        sha1sum $1.zip > sha1.txt
20        cd $1
21        find . -type f -exec sha1sum {} >> ../sha1.txt \;
22        cd ../../../../util/buildscripts
23}
24
25# Generate locale info
26cd cldr
27ant clean  # necessary until cldr scripts can handle existing AMD files
28ant
29cd ..
30
31# Setup release area
32mkdir -p ../../release/$version-cdn
33
34# Google build
35dobuild $version
Note: See TracBrowser for help on using the repository browser.