From 90769e01dd688bd9f6295905df86197470a69852 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 16 Aug 2012 21:21:14 +0200 Subject: [PATCH] add cli options --- data/surrogator.config.php | 3 +- surrogator.php | 77 +++++++++++++++++++++++++++++++++++--- 2 files changed, 73 insertions(+), 7 deletions(-) mode change 100644 => 100755 surrogator.php 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; -- 2.30.2