Changeset 452 for Dev/trunk/build/build.sh
- Timestamp:
- 06/08/13 23:40:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/build/build.sh
r408 r452 1 #!/bin/ bash1 #!/bin/sh 2 2 3 PROFILE=$1 4 if [ -z "$PROFILE" ]; then 5 echo "Usage: $0 <profile.js>" 6 exit 1 7 fi 3 echo "Cleaning up previous build" 4 rm -rf client/ server/ 8 5 9 TIME0=$SECONDS 6 echo "Building client" 7 ../src/client/util/buildscripts/build.sh --profile client.profile.js 10 8 11 BUILDDIR="`dirname $0`" 12 SRCDIR="$BUILDDIR/../client" 13 DISTDIR="$BUILDDIR/../release" 9 echo "Copying client HTML files" 10 cp ../src/client/*.html client/ 14 11 15 echo "Removing existing release directory $DISTDIR." 16 rm -rf "$DISTDIR" 17 18 echo "Start Dojo build process." 19 "$SRCDIR/util/buildscripts/build.sh" --profile "$PROFILE" 20 21 echo "Copying application top level resources." 22 for i in "$SRCDIR/data" "$SRCDIR"/*.html; do 23 svn export "$i" "$DISTDIR/`basename $i`" 24 done 25 26 echo "Preparing top level HTML files." 27 sed -i 's/data-dojo-config\s*=\s*".*"//' "$DISTDIR"/*.html 28 29 echo "Done. Runtime was $(($SECONDS-$TIME0)) seconds." 12 echo "Copying server files" 13 cp -r ../src/server/ server/
Note: See TracChangeset
for help on using the changeset viewer.