Changeset 762


Ignore:
Timestamp:
Aug 2, 2010, 3:06:10 PM (13 years ago)
Author:
duh
Message:
  • added documentation
  • made yui compressor binary configurable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/minify_if_changed.sh

    r745 r762  
    2323#                                       be created
    2424#
     25# Dependencies:
     26# - YUI Compressor ( http://yuilibrary.com/downloads/#yuicompressor )
     27# - JAVA ( obviously )
     28# - md5sum ( by default available on most systems )
     29#
    2530# @Author       Jeroen Wesbeek <J****n.W******@gmail.com>
    2631# @Since        20100729
     
    3136# $Rev$
    3237
     38YUI_COMPRESSOR=~/apps/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar
    3339SOURCE=$1
    3440ONLY_IF_MINIFIED_ALREADY_EXISTS=$2
     
    6470
    6571# minify sourcefile
    66 java -jar ~/apps/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar $SOURCE > $TMP_FILE
     72java -jar $YUI_COMPRESSOR $SOURCE > $TMP_FILE
    6773
    6874# determine the MD5 hash of the generated file
Note: See TracChangeset for help on using the changeset viewer.