Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created May 7, 2010 03:15
Show Gist options
  • Save Sixeight/392994 to your computer and use it in GitHub Desktop.
Save Sixeight/392994 to your computer and use it in GitHub Desktop.
#! /bin/sh
#
# Install: zen, ccs, views, devel, theme developer
# Make: Custom theme based on zen.
#
echo -n 'drupal path: '
read path
drupalctl -d $path theme add http://ftp.drupal.org/files/projects/zen-6.x-1.1.tar.gz
drupalctl -d $path module add http://ftp.drupal.org/files/projects/cck-6.x-2.6.tar.gz
drupalctl -d $path module add http://ftp.drupal.org/files/projects/views-6.x-2.10.tar.gz
drupalctl -d $path module add http://ftp.drupal.org/files/projects/devel-6.x-1.20.tar.gz
drupalctl -d $path module add http://ftp.drupal.org/files/projects/devel_themer-6.x-1.x-dev.tar.gz
echo '###############'
echo 'install success'
echo '###############'
echo -n 'theme name: '
read theme_name
echo -n 'layout type [0: liquid, 1:fixed]: '
read type
cd $path
cd sites/all/themes
cp -r zen/STARTERKIT $theme_name
cd $theme_name
mv STARTERKIT.info.txt $theme_name.info
vim $theme_name.info
if [ $type = '0' ]
then
cp ../zen/zen/layout-liquid.css layout.css
else
cp ../zen/zen/layout-fixed.css layout.css
fi
cp ../zen/zen/zen.css $theme_name.css
cp ../zen/zen/html-elements.css .
cp ../zen/zen/print.css .
sed -i "s/STARTERKIT/${theme_name}/g" template.php
sed -i "s/STARTERKIT/${theme_name}/g" theme-settings.php
echo '###############'
echo 'setting success'
echo '###############'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment