Update webui build file to run on Ubuntu

This commit is contained in:
Calum Lind 2011-12-07 00:52:10 +00:00
parent 9e43956e1b
commit 774e614f7b
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
BASE_DIR="${PWD}/`dirname ${0}`"
BASE_DIR=`readlink -f "$BASE_DIR"`
@ -12,6 +12,14 @@ BUILD_DATA_GENERATED=0
YUI_COMPRESSOR=`which yuicompressor`
BUILD_TYPE="js"
if [ -z $YUI_COMPRESSOR ]; then
YUI_COMPRESSOR=`which yui-compressor`
if [ -z $YUI_COMPRESSOR ]; then
echo "Please install yuicompressor"
exit 1
fi
fi
add_file()
{
FILES="${FILES} ${SOURCE_DIR}/$1"
@ -64,6 +72,7 @@ check()
build()
{
echo "building $BUILD_NAME"
# generated the unminified version