Created
January 9, 2011 03:24
-
-
Save icyleaf/771385 to your computer and use it in GitHub Desktop.
This script is a helper that it will help you download Alpaca and initial structure to current path.
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
#!/bin/bash | |
# | |
# This script is a helper that it will help you download Alpaca and initial structure to current path. | |
# To install elsewhere you can just clone https://github.com/icyleaf/alpaca anywhere you like. | |
# | |
# AUTHOR icyleaf <icyleaf.cn@gmail.com> | |
# VERSION 0.1 | |
# | |
echo "Clone the alpaca project from Github" | |
DOWNLOAD_ALPACA=$(git clone git://github.com/icyleaf/alpaca.git) | |
if [ -z "$DOWNLOAD_ALPACA" ]; then | |
exit 1 | |
fi | |
echo | |
echo "Initing Alpaca Project" | |
echo | |
cd alpaca | |
echo "1. Downloading core of Kohana and modules..." | |
KOHANA_MODULES=$(git submodule update --init) | |
echo "$KOHANA_MODULES" | |
if [ -z "$KOHANA_MODULES" ]; then | |
echo >&2 "ERROR: Its has been Downloaded." | |
exit 1 | |
fi | |
echo | |
echo "2. Downloading twig-php template engine framework..." | |
cd core/modules/twig | |
TWIG=$(git submodule update --init) | |
if [ -z "$TWIG" ]; then | |
echo >&2 "ERROR: TWIG has been Downloaded." | |
exit 1 | |
fi | |
echo | |
echo "All Done!" |
Author
icyleaf
commented
Jan 9, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment