#!/bin/bash # this script copies a Zen-based Drupal subtheme into a new, named subtheme # the subtheme can be either a real or a linked directory in the site's themes directory # default values DEFAULT_LAYOUT='f' DEFAULT_BASE='egressive_blue' # The working directory DEFAULT_DIR=`pwd` usage() { cat < $NAME/$NAME.info rm $INFO #cp $BASE/$CSS $NAME/layout.css #cp $BASE/print.css $NAME/print.css #cp $BASE/html-elements.css $NAME/html-elements.css cp $BASE/$BASE.css $NAME/$NAME.css sed 's/$BASE/'$NAME'/g' $BASE/template.php > $NAME/template.php sed 's/$BASE/'$NAME'/g' $BASE/theme-settings.php > $NAME/theme-settings.php echo "Done" exit 0