Changeset 493


Ignore:
Timestamp:
08/09/2010 01:13:54 AM (18 months ago)
Author:
ofer
Message:

Add copyright notice to minified .js files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/build.sh

    r463 r493  
    9393fi 
    9494 
     95DATE=`date -R` 
     96YEAR=`date +%Y` 
    9597if [ "$DEBUG" != 'debug' ]; then 
    9698  echo "Minify .js files" 
     
    98100    echo "minifying $file" 
    99101#    java -jar /root/yui/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar $file -o $TRANSPOSH_DIR/$file 
    100     java -jar /root/googlecompiler/compiler.jar --js $file --js_output_file $TRANSPOSH_DIR/$file 
     102echo "/* 
     103 * Transposh v$VERSION 
     104 * http://transposh.org/ 
     105 * 
     106 * Copyright $YEAR, Team Transposh 
     107 * Licensed under the GPL Version 2 or higher. 
     108 * http://transposh.org/license 
     109 * 
     110 * Date: $DATE 
     111 */" > $TRANSPOSH_DIR/$file 
     112    java -jar /root/googlecompiler/compiler.jar --create_source_map /tmp/map-${file:5} --js $file >> $TRANSPOSH_DIR/$file 
    101113  done; 
    102114 
Note: See TracChangeset for help on using the changeset viewer.