scripts/update_bootstrap.sh in less-rails-bootstrap-3.0.1 vs scripts/update_bootstrap.sh in less-rails-bootstrap-3.0.2

- old
+ new

@@ -74,17 +74,15 @@ bn=$(basename $f) cp $f $lrb_fw_dir/$bn done info "Apply patches..." -sed -i '' 's#^\(@icon-font-path:[[:space:]]*\"\).*\(\";\)#\1twitter/bootstrap/\2#g' $lrb_fw_dir/variables.less -sed -i '' 's#url(#asset-url(#g' $lrb_fw_dir/*.less +[[ $(uname -s) == 'Darwin' ]] && ioption=(-i "") || ioption=(-i) +sed "${ioption[@]}" 's#^\(@icon-font-path:[[:space:]]*\"\).*\(\";\)#\1twitter/bootstrap/\2#g' $lrb_fw_dir/variables.less +sed "${ioption[@]}" 's#url(#asset-url(#g' $lrb_fw_dir/*.less info "Generate bootstrap.js..." -for f in $lrb_js_dir/*.js; do - bn=$(basename $f) - echo "//= require twitter/bootstrap/$bn" >> $lrb_bootstrap_js -done +sed -n "s#.*'js/\([a-z]\{1,\}\.js\)'.*#//= require twitter/bootstrap/\1#p" twitter/bootstrap/Gruntfile.js >> $lrb_bootstrap_js info "Generate bootstrap.css.less..." mkdir -p $lrb_styles_dir echo "@import \"twitter/bootstrap/bootstrap\";" >> $lrb_bootstrap_less