Created
June 5, 2012 10:53
-
-
Save avishai/2874375 to your computer and use it in GitHub Desktop.
Flip CSS files using the R2 utility
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
#!/usr/bin/ruby | |
files = Dir.glob("app/assets/stylesheets/*.css") | |
for file in files do | |
next if file.match(".rtl.css") | |
output_file=file.gsub(".css", ".rtl.css") | |
puts "Flipping #{file} => #{output_file}" | |
`r2 #{file} #{output_file}` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment