Last active
August 29, 2015 14:14
-
-
Save rthbound/5da9ebe4f31bb61fd602 to your computer and use it in GitHub Desktop.
making markup changes and css additions to a bunch of projects at once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while IFS="," read -r downcased titleized; do | |
cd What${titleized}IsIt | |
git checkout . | |
sed -i "s/center/not-center/g" ./index.html | |
sed -i 's/document.getElementById("time").innerHTML = (date + "<br\/>" + time + ":" + s);/document.getElementById("time").innerHTML = ("<div class='pull-left'>" + date + "<\/div><div class='pull-right'>" + time + ":" + s + "<\/div>");/g' ./assets/script.js | |
cat ../style.css >> assets/style.css | |
git commit -am "Adds markup and css for pull-left and pull-right classes" | |
git push -u origin gh-pages | |
cd .. | |
done < generation.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while IFS="," read -r downcased titleized; do | |
cd What${titleized}IsIt | |
git checkout . | |
sed -i '/background-repeat-x: no-repeat;/d' assets/style.css | |
sed -i 's/background-repeat-y: no-repeat;/background-repeat: no-repeat no-repeat;/g' assets/style.css | |
sed -i 's/27%/30%/g' assets/style.css | |
git commit -am "Fixes fullscreen background repeating on firefox - thank ekem for pointing that out" | |
git push -u origin gh-pages | |
cd .. | |
done < generation.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment