Add console executables
This commit is contained in:
parent
9b8fb1d550
commit
dcf2ed26bb
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
|
||||||
|
|
||||||
|
if [[ -d /proc/cygdrive && $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
|
||||||
|
# We are in Cgywin using Windows php, so the path must be translated
|
||||||
|
dir=$(cygpath -m "$dir");
|
||||||
|
fi
|
||||||
|
|
||||||
|
php "${dir}/console.php" "$@"
|
|
@ -0,0 +1,4 @@
|
||||||
|
@echo OFF
|
||||||
|
:: in case DelayedExpansion is on and a path contains !
|
||||||
|
setlocal DISABLEDELAYEDEXPANSION
|
||||||
|
php "%~dp0console.php" %*
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/env php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
include_once dirname(__DIR__) . '/boot.php';
|
||||||
|
|
||||||
|
$a = new Friendica\App(dirname(__DIR__));
|
||||||
|
\Friendica\BaseObject::setApp($a);
|
||||||
|
|
||||||
|
(new Friendica\Core\Console())->execute();
|
Loading…
Reference in New Issue
Block a user