source: Dev/trunk/src/client/util/buildscripts/cdnBuild.sh @ 483

Last change on this file since 483 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

  • Property svn:executable set to *
File size: 926 bytes
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        ./build.sh profile=standard profile=cdn releaseName=$1 cssOptimize=comments.keepLines optimize=closure layerOptimize=closure 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}
23
24# Generate locale info
25cd cldr
26ant clean  # necessary until cldr scripts can handle existing AMD files
27ant
28cd ..
29
30# Setup release area
31mkdir -p ../../release/$version-cdn
32
33# Google build
34dobuild $version
Note: See TracBrowser for help on using the repository browser.