Skip to content

Commit

Permalink
koapp should be functional now...
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed May 11, 2011
1 parent edffd9f commit 3cfb5a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "system"]
path = system
url = https://github.com/kohana/core.git
15 changes: 8 additions & 7 deletions koapp
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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
Expand All @@ -206,12 +206,13 @@ install()
install_orm
install_db
update_submodules

commit_git

echo ""
echo "Installed."
}

if [ "$1" ];
then
$1
$1 $2
fi
1 change: 1 addition & 0 deletions system
Submodule system added at ed12c1

0 comments on commit 3cfb5a5

Please sign in to comment.