Created
February 20, 2014 05:14
-
-
Save dongyuwei/9107443 to your computer and use it in GitHub Desktop.
rename all css to less
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
count = 0; | |
Dir["./src/main/webapp/assets/**/*.css"].each {|f| | |
# File.rename(f, f.downcase) | |
count = count + 1 | |
system("git mv #{f} #{f.sub(/.css$/,'.less')}") | |
} | |
puts count | |
# find src/main/webapp/assets -name *.css|wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment