diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:42 -0300 |
commit | 551497ef94f6239b109316d8fab32f0909b13f73 (patch) | |
tree | 236615e9881988ce05f40583ff891bf0fcef2c14 /vendors/lessphp/lessify | |
download | elgg-551497ef94f6239b109316d8fab32f0909b13f73.tar.gz elgg-551497ef94f6239b109316d8fab32f0909b13f73.tar.bz2 |
Squashed 'mod/less/' content from commit 380edad
git-subtree-dir: mod/less
git-subtree-split: 380edadb3a5e524a8e6ef6df063b678f2f00516f
Diffstat (limited to 'vendors/lessphp/lessify')
-rwxr-xr-x | vendors/lessphp/lessify | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendors/lessphp/lessify b/vendors/lessphp/lessify new file mode 100755 index 000000000..416f0ca4c --- /dev/null +++ b/vendors/lessphp/lessify @@ -0,0 +1,23 @@ +#!/usr/bin/php -q +<?php + +if (php_sapi_name() != "cli") { + err($fa.$argv[0]." must be run in the command line."); + exit(1); +} +$exe = array_shift($argv); // remove filename + +if (!$fname = array_shift($argv)) { + exit("Usage: ".$exe." input-file\n"); +} + +require "lessify.inc.php"; + +try { + $parser = new lessify($fname); + echo $parser->parse(); +} catch (exception $e) { + exit("Fatal error: ".$e->getMessage()."\n"); +} + + |