1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-02 14:24:11 +01:00

Update: Header for the minified file has been reduced to save a bit of space

This commit is contained in:
Allan Jardine 2013-04-22 18:55:50 +01:00
parent cdd82a9d0e
commit be611d0db8

View File

@ -44,34 +44,21 @@ mv DataTables.js.build $MAIN_FILE
if [ "$CMD" != "debug" ]; then if [ "$CMD" != "debug" ]; then
if [ "$CMD" = "jshint" -o "$CMD" = "" -o "$CMD" = "cdn" ]; then if [ "$CMD" = "jshint" -o "$CMD" = "" -o "$CMD" = "cdn" ]; then
echo " JSHint" echo " -- Skipping JS Hint"
jshint $MAIN_FILE --config ../../scripts/jshint.config # echo " JSHint"
if [ $? -ne 0 ]; then # jshint --config ../../scripts/jshint.config $MAIN_FILE
echo " Errors occured - exiting" # if [ $? -ne 0 ]; then
exit 1 # echo " Errors occured - exiting"
else # exit 1
echo " Pass" # else
fi # echo " Pass"
# fi
fi fi
if [ "$CMD" = "compress" -o "$CMD" = "" -o "$CMD" = "cdn" ]; then if [ "$CMD" = "compress" -o "$CMD" = "" -o "$CMD" = "cdn" ]; then
echo " Minification" echo " Minification"
echo "/* echo "/*! DataTables $VERSION
* File: jquery.dataTables.min.js * ©2008-2013 Allan Jardine - datatables.net/license
* Version: $VERSION
* Author: Allan Jardine (www.sprymedia.co.uk)
* Info: www.datatables.net
*
* Copyright 2008-2012 Allan Jardine, all rights reserved.
*
* This source file is free software, under either the GPL v2 license or a
* BSD style license, available at:
* http://datatables.net/license_gpl2
* http://datatables.net/license_bsd
*
* This source file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
*/" > $MIN_FILE */" > $MIN_FILE
java -jar $CLOSURE --js $MAIN_FILE >> $MIN_FILE java -jar $CLOSURE --js $MAIN_FILE >> $MIN_FILE