Skip to content

Instantly share code, notes, and snippets.

@Nully
Created August 4, 2011 03:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nully/1124448 to your computer and use it in GitHub Desktop.
Save Nully/1124448 to your computer and use it in GitHub Desktop.
Espresso Installer
#!/bin/bash
# Install start message
func_startMsg()
{
echo ""
echo "Install start $1."
}
func_endMsg()
{
echo "Install complete $1."
echo ''
}
# Directory operations
func_init()
{
# Exists git command ?
if ! type -P git > /dev/null
then
echo 'git command does not exists. exit sugar installer.'
echo ''
exit;
fi
if [ ! -e ./Esspresso ]; then
mkdir ./Espresso
else
echo 'Exists Esspresso directory.'
fi
cd Espresso
if [ ! -e ./Sugars ]; then
mkdir ./Sugars
else
echo 'Exists Sugars directory.'
fi
if [ ! -e ./Themes ]; then
mkdir ./Themes
else
echo 'Exists Themes directory'
fi
}
func_init
cd Sugars
echo `pwd`
echo 'move Sugars directory.'
# HTML5 Sugar
func_startMsg "HTML5 Sugar"
git clone git://github.com/minimalweb/HTML5.sugar.git ./HTML5.sugar
func_endMsg "HTML5 Sugar"
# CSS3 Sugar
func_startMsg "CSS3 Sugar"
git clone git://github.com/minimalweb/CSS3.sugar.git ./CSS3.sugar
func_endMsg "CSS3 Sugar"
# jQuery Sugar
func_startMsg "jQuery Sugar"
git clone git://github.com/derekr/jquery.sugar.git ./jQuery.sugar
func_endMsg "jQuery Sugar"
# PHP Smarty Sugar
func_startMsg "Smarty Sugar"
git clone git://github.com/ptrm/Smarty.sugar.git ./jQuery.sugar
func_endMsg "Smarty Sugar"
## Optional Sugars
# Markdown Sugar
func_startMsg "Markdown Sugar"
git clone git://github.com/dc/markdown.sugar.git ./markdown.sugar
func_endMsg "Markdown Sugar"
# Regex search Sugar
func_startMsg "Regex Sugar"
git clone git://github.com/elliottcable/regex.sugar.git ./regex.sugar
func_endMsg "Regex Sugar"
# ini Sugar
func_startMsg "ini Sugar"
git clone git://github.com/drudge/ini.sugar.git ./ini.sugar
func_endMsg "ini Sugar"
echo 'Complete Sugar install.'
echo ''
cd ../Themes/
echo `pwd`
echo 'move to Themes direcotry'
## For theme installer
# vibranink
func_startMsg "vibrantink Theme"
git clone git://github.com/jackw/vibrant-ink-espresso-theme.git ./vibrantink
func_endMsg "vibrantink Theme"
# Obsidian
func_startMsg "Obsidian Theme"
git clone git://github.com/Zidizei/Obsidian-Espresso-Theme.git ./obsidian
func_endMsg "Obsidian Theme"
# WindWheel
func_startMsg "WindWheel Theme"
git clone git://github.com/minimalweb/Wind-Wheel-Theme-for-Espresso.git ./wind-wheel
func_endMsg "WindWheel Theme"
# monokaffee
func_startMsg "monokaffee Theme"
git clone git://github.com/mthjones/monokaffee.git ./monokaffee
func_endMsg "monokaffee Theme"
# twilight
func_startMsg "twilight Theme"
git clone git://github.com/oskarkrawczyk/twilight.foam.git ./twilight
func_startMsg "twilight Theme"
cd ../
echo `pwd`
echo 'Install complete Esspresso Sugar & Themes.'
echo ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment