aboutsummaryrefslogtreecommitdiff
path: root/mod/less/vendors/lessphp/lessify
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:42:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:42:42 -0300
commit711dab09b5146e74dbeda56679c65e3b6bec71f3 (patch)
treefed51be1475322c7a565d180d0b0ae3f97e6cf3a /mod/less/vendors/lessphp/lessify
parent4311cd55c6e6d6a064bfeabb53b9c528ca553ffd (diff)
parent551497ef94f6239b109316d8fab32f0909b13f73 (diff)
downloadelgg-711dab09b5146e74dbeda56679c65e3b6bec71f3.tar.gz
elgg-711dab09b5146e74dbeda56679c65e3b6bec71f3.tar.bz2
Merge commit '551497ef94f6239b109316d8fab32f0909b13f73' as 'mod/less'
Diffstat (limited to 'mod/less/vendors/lessphp/lessify')
-rwxr-xr-xmod/less/vendors/lessphp/lessify23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/less/vendors/lessphp/lessify b/mod/less/vendors/lessphp/lessify
new file mode 100755
index 000000000..416f0ca4c
--- /dev/null
+++ b/mod/less/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");
+}
+
+