xCAT-UI build error on AIX(declare: not found)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9371 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2011-04-22 06:45:33 +00:00
parent 3db536fdca
commit e4d72cd233

View File

@ -36,12 +36,11 @@ echo "Minifying Javascripts... This will take a couple of minutes."
COMPILER_JAR='/xcat2/build/tools/compiler.jar'
UI_JS="js/"
%ifos linux
JAVA='/opt/ibm/java-ppc64-60/jre/bin/java'
# Find all Javascript files
declare -a FILES
FILES=`find ${UI_JS} -name '*.js'`
%ifos linux
JAVA='/opt/ibm/java-ppc64-60/jre/bin/java'
for i in ${FILES[*]}; do
# Ignore Javascripts that are already minified
if [[ ! $i =~ '.*\.min\.js$' ]]; then
@ -55,6 +54,8 @@ done
%else # AIX
JAVA='/usr/java6_64/bin/java'
# Find all Javascript files
FILES=`find ${UI_JS} -name '*.js'`
for i in ${FILES[*]}; do
# Ignore Javascripts that are already minified
if [[ ! $i = @(*.min.js) ]]; then