From c6f5ccac96c4d25b5369cdb14f10aef310e128cb Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 1 Mar 2011 15:08:16 +0000 Subject: [PATCH] Moved compression script to xCAT-UI.spec git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8944 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- makeuirpm | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/makeuirpm b/makeuirpm index cf927646c..5d3595031 100755 --- a/makeuirpm +++ b/makeuirpm @@ -28,28 +28,6 @@ else else pkg="packages" fi - - # Minify Javascript files using Google Compiler - JAVA='/opt/ibm/java-ppc64-60/jre/bin/java' - JAR='/xcat2/build/tools/compiler.jar' - UI='xCAT-UI/js' - - declare -a FILES - IFS=' - ' - - # Find all Javascript files - FILES=(`find ${UI} -name '*.js'`) - for i in ${FILES[*]}; do - # Ignore Javascripts that are already minified - if [[ ! $i =~ '.*\.min\.js$' ]]; then - `${JAVA} -jar ${JAR} --warning_level=QUIET --js=$i --js_output_file=$i.min` - - # Remove old Javascript and replace it with minified version - rm -rf $i - mv $i.min $i - fi - done set -x tar --exclude=.svn -czf /usr/src/$pkg/SOURCES/xCAT-UI-$VER.tar.gz xCAT-UI