diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /vendor/leafo/lessphp/lessify | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'vendor/leafo/lessphp/lessify')
-rw-r--r-- | vendor/leafo/lessphp/lessify | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/leafo/lessphp/lessify b/vendor/leafo/lessphp/lessify new file mode 100644 index 00000000..becc5388 --- /dev/null +++ b/vendor/leafo/lessphp/lessify @@ -0,0 +1,23 @@ +#!/usr/bin/php +<?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"); +} + + |