From 3cfb5a53b27e853cbee7b01138bdf853a3330bb1 Mon Sep 17 00:00:00 2001 From: Luke Morton Date: Wed, 11 May 2011 22:48:00 +0100 Subject: [PATCH] koapp should be functional now... --- .gitmodules | 3 +++ koapp | 15 ++++++++------- system | 1 + 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .gitmodules create mode 160000 system diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f25bcb8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "system"] + path = system + url = https://github.com/kohana/core.git diff --git a/koapp b/koapp index 9d966ee..5629386 100755 --- a/koapp +++ b/koapp @@ -49,22 +49,20 @@ set_app_path() fi # Use app name - echo "Using $APP_NAME as application path..." + echo "Using $app_path as application path..." } create_app_path() { - if [ ! -d "$1" ]; + if [ ! -d "$app_path" ]; then # Create folder in application path echo "Creating application path..." - mkdir -p $1 + mkdir -p $app_path fi } -# Go go go... -cd $APP_NAME create_folder_structure() { @@ -195,8 +193,10 @@ commit_git() install() { + echo $1 set_app_path $1 create_app_path + cd $1 create_folder_structure install_bootstrap install_index @@ -206,12 +206,13 @@ install() install_orm install_db update_submodules - + commit_git + echo "" echo "Installed." } if [ "$1" ]; then - $1 + $1 $2 fi diff --git a/system b/system new file mode 160000 index 0000000..ed12c18 --- /dev/null +++ b/system @@ -0,0 +1 @@ +Subproject commit ed12c18fdd2182e1cf0859860af80f388b23b1da