# HG changeset patch # User Dan # Date 1216828949 18000 # Node ID fcab604da9a79bcbc1718c4cd317564ecefee70f # Parent 5dd55a9240f8cc3c4008f3b36c28bcff5b858e44 Made grinding_halt() exit with status 1 for POSIX compatibility; jscompress.php utility now accepts non-CDN websites diff -r 5dd55a9240f8 -r fcab604da9a7 includes/clientside/jscompress.php --- a/includes/clientside/jscompress.php Tue Jul 22 17:08:05 2008 -0500 +++ b/includes/clientside/jscompress.php Wed Jul 23 11:02:29 2008 -0500 @@ -65,13 +65,13 @@ die_friendly('Not for web use', '
This script is designed to be run from a command-line environment.
'); } -if ( !getConfig('cdn_path') ) -{ - die_friendly('CDN support not enabled', 'This script is for compressing the Enano Javascript runtimes for CDN use.'); -} +// if ( !getConfig('cdn_path') ) +// { +// die_semicritical('CDN support not enabled', 'This script is for compressing the Enano Javascript runtimes for CDN use.'); +// } echo "\x1B[1mCreating zip file with compressed Javascript runtimes.\x1B[0m\n"; -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"; +echo "\x1B[0;32mWhen finished, upload the contents of enano-lib.zip to:\n\x1B[1;34m " . cdnPath . "/includes/clientside/static/\x1B[0m\n"; echo "\x1B[0;33mChecking for zip support..."; diff -r 5dd55a9240f8 -r fcab604da9a7 includes/functions.php --- a/includes/functions.php Tue Jul 22 17:08:05 2008 -0500 +++ b/includes/functions.php Wed Jul 23 11:02:29 2008 -0500 @@ -756,7 +756,7 @@ // unbold echo "\x1B[0m"; echo "$p\n"; - exit; + exit(1); } $theme = ( defined('ENANO_CONFIG_FETCHED') ) ? getConfig('theme_default') : 'oxygen'; $style = ( defined('ENANO_CONFIG_FETCHED') ) ? '__foo__' : 'bleu';