Browse Source

Remove executables from the repo.

These executables require the application bootstrapping that is not
found in this repo, hence they are pretty useless.
mark_story 12 years ago
parent
commit
49fc52c1d9
4 changed files with 3 additions and 110 deletions
  1. 3 2
      src/Console/ShellDispatcher.php
  2. 0 40
      src/Console/cake
  3. 0 31
      src/Console/cake.bat
  4. 0 37
      src/Console/cake.php

+ 3 - 2
src/Console/ShellDispatcher.php

@@ -1,7 +1,5 @@
 <?php
 /**
- * ShellDispatcher file
- *
  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  *
@@ -23,6 +21,9 @@ use Cake\Utility\Inflector;
 
 /**
  * Shell dispatcher handles dispatching cli commands.
+ *
+ * Consult https://github.com/cakephp/app/tree/master/App/Console/cake.php
+ * for how this class is used in practice.
  */
 class ShellDispatcher {
 

+ 0 - 40
src/Console/cake

@@ -1,40 +0,0 @@
-#!/usr/bin/env bash
-################################################################################
-#
-# Bake is a shell script for running CakePHP bake script
-#
-# CakePHP(tm) :  Rapid Development Framework (http://cakephp.org)
-# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-#
-# Licensed under The MIT License
-# For full copyright and license information, please see the LICENSE.txt
-# Redistributions of files must retain the above copyright notice.
-#
-# @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-# @link          http://cakephp.org CakePHP(tm) Project
-# @since         1.2.0
-# @license       http://www.opensource.org/licenses/mit-license.php MIT License
-#
-################################################################################
-
-# Canonicalize by following every symlink of the given name recursively
-canonicalize() {
-	NAME="$1"
-	if [ -f "$NAME" ]
-	then
-		DIR=$(dirname -- "$NAME")
-		NAME=$(cd -P "$DIR" && pwd -P)/$(basename -- "$NAME")
-	fi
-	while [ -h "$NAME" ]; do
-		DIR=$(dirname -- "$NAME")
-		SYM=$(readlink "$NAME")
-		NAME=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
-	done
-	echo "$NAME"
-}
-
-CONSOLE=$(dirname -- "$(canonicalize "$0")")
-APP=`pwd`
-
-exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
-exit

+ 0 - 31
src/Console/cake.bat

@@ -1,31 +0,0 @@
-::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-::
-:: Bake is a shell script for running CakePHP bake script
-::
-:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
-:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-::
-:: Licensed under The MIT License
-:: Redistributions of files must retain the above copyright notice.
-::
-:: @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
-:: @link          http://cakephp.org CakePHP(tm) Project
-:: @package       Cake.Console
-:: @since         1.2.0
-:: @license       http://www.opensource.org/licenses/mit-license.php MIT License
-::
-::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-
-:: In order for this script to work as intended, the cake\console\ folder must be in your PATH
-
-@echo.
-@echo off
-
-SET app=%0
-SET lib=%~dp0
-
-php -q "%lib%cake.php" -working "%CD% " %*
-
-echo.
-
-exit /B %ERRORLEVEL%

+ 0 - 37
src/Console/cake.php

@@ -1,37 +0,0 @@
-#!/usr/bin/php -q
-<?php
-/**
- * PHP 5
- *
- * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
- * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- *
- * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
- * Redistributions of files must retain the above copyright notice.
- *
- * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
- * @link          http://cakephp.org CakePHP(tm) Project
- * @since         1.2.0
- * @license       http://www.opensource.org/licenses/mit-license.php MIT License
- */
-$cakeRoot = dirname(dirname(dirname(__DIR__)));
-
-$app = 'App';
-$appIndex = array_search('-app', $argv);
-if ($appIndex !== false) {
-	$app = $argv[$appIndex + 1];
-}
-
-// Path to default App skeleton.
-$path = $cakeRoot . '/../../' . $app . '/Config/bootstrap.php';
-
-if (!file_exists($path)) {
-	fwrite(STDERR, "Unable to load CakePHP libraries. If you are not using the default App directory, you will need to use the -app flag.\n");
-	exit(10);
-}
-
-require $path;
-
-unset($cakeRoot, $path, $app, $appIndex);
-exit(Cake\Console\ShellDispatcher::run($argv));