Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating project task to test for directories and files in a more readable way.
- Loading branch information
Showing
7 changed files
with
129 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
################################################################################ | ||
# | ||
# Bake is a shell script for running CakePHP bake script | ||
# PHP 5 | ||
# | ||
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
# Copyright 2005-2010, Cake Software Foundation, Inc. | ||
# | ||
# Licensed under The MIT License | ||
# Redistributions of files must retain the above copyright notice. | ||
# | ||
# @copyright Copyright 2005-2010, Cake Software Foundation, Inc. | ||
# @link http://cakephp.org CakePHP(tm) Project | ||
# @package cake | ||
# @subpackage cake.app.console | ||
# @since CakePHP(tm) v 2.0 | ||
# @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
# | ||
################################################################################ | ||
LIB=${0/%cake/} | ||
APP=`pwd` | ||
|
||
exec php -q ${LIB}cake.php -working "${APP}" "$@" | ||
|
||
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
:: | ||
:: Bake is a shell script for running CakePHP bake script | ||
:: PHP 5 | ||
:: | ||
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
:: Copyright 2005-2010, Cake Software Foundation, Inc. | ||
:: | ||
:: Licensed under The MIT License | ||
:: Redistributions of files must retain the above copyright notice. | ||
:: | ||
:: @copyright Copyright 2005-2010, Cake Software Foundation, Inc. | ||
:: @link http://cakephp.org CakePHP(tm) Project | ||
:: @package cake | ||
:: @subpackage cake.app.console | ||
:: @since CakePHP(tm) v 2.0 | ||
:: @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
:: | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
:: 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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/php -q | ||
<?php | ||
/** | ||
* Command-line code generation utility to automate programmer chores. | ||
* | ||
* Shell dispatcher class | ||
* | ||
* PHP 5 | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright 2005-2010, Cake Software Foundation, Inc. | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @package cake | ||
* @subpackage cake.cake.console | ||
* @since CakePHP(tm) v 1.2.0.5012 | ||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
require_once(__APP_PATH__ . 'shell_dispatcher.php'); | ||
|
||
ShellDispatcher::run($argv); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters