Sha256: 9f71ae079916a42e7b1957e2ed91c9ac302232cc35486b10ee2c2439dddef525

Contents?: true

Size: 895 Bytes

Versions: 5

Compression:

Stored size: 895 Bytes

Contents

#!/bin/bash

bs_dir='../bootstrap'
lrb_dir='.'
lrb_img_dir="$lrb_dir/vendor/assets/images/twitter/bootstrap"
lrb_js_dir="$lrb_dir/vendor/assets/javascripts/twitter/bootstrap"
lrb_styles_dir="$lrb_dir/vendor/assets/stylesheets/twitter"
lrb_fw_dir="$lrb_dir/vendor/frameworks/twitter/bootstrap"

if [ ! -d $bs_dir ]; then
    echo "Bootstrap not found. You might want to clone the bootstrap repo from http://twitter.github.com/bootstrap/ into $bs_dir"
    exit 1
fi

# images
for f in $bs_dir/img/*; do
    bn=$(basename $f)
    cp $f $lrb_img_dir/$bn
done

# scripts
for f in $bs_dir/js/*.js; do
    bn=$(basename $f)
    cp $f $lrb_js_dir/${bn/bootstrap-/}
done

# styles
for f in $bs_dir/less/*.less; do
    bn=$(basename $f)
    sed -e 's#"\.\./img/\([^"]*\)"#"twitter/bootstrap/\1"#g' \
        -e 's#background-image: url(#background-image: asset-url(#g' \
        $f > $lrb_fw_dir/$bn
done

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
less-rails-bootstrap-2.1.1 scripts/update_bootstrap.sh
less-rails-bootstrap-2.1.0 scripts/update_bootstrap.sh
less-rails-bootstrap-2.0.13 scripts/update_bootstrap.sh
less-rails-bootstrap-2.0.12 scripts/update_bootstrap.sh
less-rails-bootstrap-2.0.11 scripts/update_bootstrap.sh