includes/clientside/jscompress.php
changeset 662 fcab604da9a7
parent 650 e45183014778
child 685 17ebe24cdf85
equal deleted inserted replaced
661:5dd55a9240f8 662:fcab604da9a7
    63 if ( !defined('ENANO_CLI') )
    63 if ( !defined('ENANO_CLI') )
    64 {
    64 {
    65   die_friendly('Not for web use', '<p>This script is designed to be run from a command-line environment.</p>');
    65   die_friendly('Not for web use', '<p>This script is designed to be run from a command-line environment.</p>');
    66 }
    66 }
    67 
    67 
    68 if ( !getConfig('cdn_path') )
    68 // if ( !getConfig('cdn_path') )
    69 {
    69 // {
    70   die_friendly('CDN support not enabled', 'This script is for compressing the Enano Javascript runtimes for CDN use.');
    70 //   die_semicritical('CDN support not enabled', 'This script is for compressing the Enano Javascript runtimes for CDN use.');
    71 }
    71 // }
    72 
    72 
    73 echo "\x1B[1mCreating zip file with compressed Javascript runtimes.\x1B[0m\n";
    73 echo "\x1B[1mCreating zip file with compressed Javascript runtimes.\x1B[0m\n";
    74 echo "\x1B[0;32mWhen finished, upload the contents of enano-lib.zip to:\n\x1B[1;34m  " . getConfig('cdn_path') . "/includes/clientside/static/\x1B[0m\n";
    74 echo "\x1B[0;32mWhen finished, upload the contents of enano-lib.zip to:\n\x1B[1;34m  " . cdnPath . "/includes/clientside/static/\x1B[0m\n";
    75 
    75 
    76 echo "\x1B[0;33mChecking for zip support...";
    76 echo "\x1B[0;33mChecking for zip support...";
    77 
    77 
    78 // do we have zip file support?
    78 // do we have zip file support?
    79 $have_zip = false;
    79 $have_zip = false;