Skip to content

Instantly share code, notes, and snippets.

@icyleaf
Created January 9, 2011 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icyleaf/771385 to your computer and use it in GitHub Desktop.
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.
#!/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!"
@icyleaf
Copy link
Author

icyleaf commented Jan 9, 2011

curl -O https://gist.github.com/raw/771385/download_alpaca.sh && chmod +x download_alpaca.sh && ./download_alpaca.sh && rm download_alpaca.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment