comparison bin/css-unmin @ 68:40162d9f1d0b

Added to help diff minified CSS files.
author samer
date Fri, 14 Aug 2015 16:30:02 +0100
parents
children
comparison
equal deleted inserted replaced
67:1d3b52f93d8c 68:40162d9f1d0b
1 #!/bin/sh
2 awk '{gsub(/{|;/,"&\n\t"); print}' | awk '{if(match($0,/[^\;]+}/)) {gsub(/}/,";\n&\n"); print}else{gsub(/}/,"\n&"); print}'}