2012-11-01 08:48:46 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
ROOT=`pwd`"/vendor/assets"
|
|
|
|
TMP='tmp/sass-twitter-bootstrap'
|
|
|
|
# Pull down sass-twitter-bootstrap sources
|
|
|
|
git clone https://github.com/jlong/sass-twitter-bootstrap.git tmp/sass-twitter-bootstrap
|
|
|
|
# Copy lib/ to stylesheets/
|
2012-11-05 07:45:28 -05:00
|
|
|
mkdir -p $ROOT/stylesheets/bootstrap
|
|
|
|
cp -r $TMP/lib/* $ROOT/stylesheets/bootstrap
|
2012-11-01 08:48:46 -04:00
|
|
|
# Copy js/ to javascripts/
|
|
|
|
cp -r $TMP/js/* $ROOT/javascripts
|
|
|
|
# Copy img/ to images/
|
|
|
|
cp -r $TMP/img/* $ROOT/images
|
2012-11-04 09:53:50 -05:00
|
|
|
# Remove tests
|
|
|
|
rm -r $ROOT/javascripts/tests
|
2012-12-11 11:16:39 -05:00
|
|
|
rm -r $ROOT/stylesheets/bootstrap/tests
|
2012-11-01 08:48:46 -04:00
|
|
|
|
2012-11-01 09:26:20 -04:00
|
|
|
# Patch the asset-url in _variables.scss
|
2012-11-05 07:45:28 -05:00
|
|
|
patch -f vendor/assets/stylesheets/bootstrap/_variables.scss < asseturl.patch
|
2012-11-01 09:26:20 -04:00
|
|
|
|
2012-12-11 11:16:39 -05:00
|
|
|
# Patch paths in bootstrap.scss and responsive.scss
|
|
|
|
sed -i .bak 's_@import \"_@import \"bootstrap/_g' $ROOT/stylesheets/bootstrap/{bootstrap,responsive}.scss
|
|
|
|
rm $ROOT/stylesheets/bootstrap/*.bak
|
|
|
|
|
2012-11-01 09:26:20 -04:00
|
|
|
rm -rf $TMP
|