From 774e614f7b508bad841fde0a004a0d6c745b846b Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 7 Dec 2011 00:52:10 +0000 Subject: [PATCH] Update webui build file to run on Ubuntu --- deluge/ui/web/build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/build b/deluge/ui/web/build index 14fb19a57..0c196770e 100755 --- a/deluge/ui/web/build +++ b/deluge/ui/web/build @@ -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