1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/bin/sh
# Checkout vendor repo
echo "Cloning Bttstrp/bootstrap-switch github repo into tmp_vendor"
git clone https://github.com/Bttstrp/bootstrap-switch.git tmp_vendor
# Copy files
echo "Copying bootstrap-switch.js"
cp tmp_vendor/dist/js/bootstrap-switch.js vendor/assets/javascripts/bootstrap-switch.js
echo "Copying bootstrap-switch.css files"
cp tmp_vendor/dist/css/bootstrap2/bootstrap-switch.css vendor/assets/stylesheets/bootstrap2-switch.scss
cp tmp_vendor/dist/css/bootstrap3/bootstrap-switch.css vendor/assets/stylesheets/bootstrap3-switch.scss
# Delete vendor repo
echo "Removing cloned vendor repo"
rm -rf tmp_vendor
echo "Finished... You'll need to commit the changes. You should consider updating the changelog and gem version number"
|