Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (35 sloc) 1.264 kB
#!/bin/sh
# This is a sample deploy script for the Orin WordPress blog theme
# @requires {com.yahoo.platform.yui.compressor.YUICompressor}
# <http://developer.yahoo.com/yui/compressor/>
# @requires {sass} and {haml}
# <http://sass-lang.com/>
# configure as needed:
BLOG_ROOT=${HOME}/blog.founddrama.net/
WP_THEMES=${BLOG_ROOT}wp-content/themes
YUI_COMPRESSOR=${HOME}/build/bin/yuicompressor-2.4.2.jar
# get into the right dir
cd ${WP_THEMES}
if [ ! -d orin ]; then
echo "[WARNING] Missing local repository!"
echo "Attempting to clone Orin theme from github:"
git clone --verbose -- ssh://git@github.com:founddrama/orin.git
fi
cd ${WP_THEMES}/orin
# update to the latest
echo "[git] Updating Orin theme from the latest in the github master branch:"
git pull --verbose
# .css from .scss
if [ ! -d css ]; then
echo "[WARNING] Missing css directory!"
echo "[bash] Attempting to create orin/css:"
mkdir css
fi
echo "[compass] Compiling CSS from Sass/SCSS sources..."
compass compile --sass-dir src/scss --css-dir css -e production -s compressed --no-line-comments
# in the event that config.rb goes missing...
if [ -e css/style.css ]; then
echo "[bash] Moving style.css to Orin theme's root..."
mv css/style.css style.css
fi
exit 0;
Jump to Line
Something went wrong with that request. Please try again.