source: Dev/branches/rest-dojo-ui/build/build.sh @ 408

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

Added config/ to build. It looks like top-level JS files (like config/db.js and rft/run.js) don't use the cache correctly in a build.

  • Property svn:executable set to *
File size: 663 bytes
Line 
1#!/bin/bash
2
3PROFILE=$1
4if [ -z "$PROFILE" ]; then
5    echo "Usage: $0 <profile.js>"
6    exit 1
7fi
8
9TIME0=$SECONDS
10
11BUILDDIR="`dirname $0`"
12SRCDIR="$BUILDDIR/../client"
13DISTDIR="$BUILDDIR/../release"
14
15echo "Removing existing release directory $DISTDIR."
16rm -rf "$DISTDIR"
17
18echo "Start Dojo build process."
19"$SRCDIR/util/buildscripts/build.sh" --profile "$PROFILE"
20
21echo "Copying application top level resources."
22for i in "$SRCDIR/data" "$SRCDIR"/*.html; do
23    svn export "$i" "$DISTDIR/`basename $i`"
24done
25
26echo "Preparing top level HTML files."
27sed -i 's/data-dojo-config\s*=\s*".*"//' "$DISTDIR"/*.html
28
29echo "Done. Runtime was $(($SECONDS-$TIME0)) seconds."
Note: See TracBrowser for help on using the repository browser.