-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.sh
executable file
·27 lines (20 loc) · 953 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
compass create wordpress --using compass/extension --syntax sass
svn export http://thematic.googlecode.com/svn/trunk/ thematic
cp -r thematic/thematicsamplechildtheme/ wordpress/templates/project/
echo "discover :all" >> wordpress/templates/project/manifest.rb
sed -i '' '/*\//,$ d' wordpress/templates/project/style.css
echo "*/
@import url('stylesheets/screen.css');" >> wordpress/templates/project/style.css
echo "
@import 'wordpress'" >> wordpress/templates/project/screen.sass
sass-convert --from css --to sass --recursive thematic/library wordpress/stylesheets
for file in wordpress/stylesheets/*/*.sass
do
mv $file `echo $file | sed -E "s/([^\/]*)$/_\\1/"`
done
find wordpress/stylesheets/*/* | \
sed -E "s/.*\/([^\/]*\/[^\/]*\.sass)$/@import '\\1'/" >> \
wordpress/stylesheets/_wordpress.sass
echo "Please edit _wordpress.sass to reflect sensible defaults."
echo "Use Rake to build, install and publish compass-wordpress."