From: Christian Weiske Date: Thu, 16 Aug 2012 19:21:14 +0000 (+0200) Subject: add cli options X-Git-Tag: v0.1.0~20 X-Git-Url: https://git.cweiske.de/surrogator.git/commitdiff_plain/90769e01dd688bd9f6295905df86197470a69852 add cli options --- diff --git a/data/surrogator.config.php b/data/surrogator.config.php index 2938beb..87efce0 100644 --- a/data/surrogator.config.php +++ b/data/surrogator.config.php @@ -3,5 +3,6 @@ $rawDir = __DIR__ . '/../raw/'; $varDir = __DIR__ . '/../var/'; $sizes = array(16, 32, 48, 64, 80, 96, 128, 256, 512); $maxSize = 512; -$logLevel = 2;//0 - nothing, 3 - high +$logLevel = 1;//0 - nothing, 3 - high +$forceUpdate = false; ?> diff --git a/surrogator.php b/surrogator.php old mode 100644 new mode 100755 index bad8a45..07556bb --- a/surrogator.php +++ b/surrogator.php @@ -1,6 +1,65 @@ +#!/usr/bin/env php filemtime($targetPath)) { //source newer return false;