annotate 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
rev   line source
samer@68 1 #!/bin/sh
samer@68 2 awk '{gsub(/{|;/,"&\n\t"); print}' | awk '{if(match($0,/[^\;]+}/)) {gsub(/}/,";\n&\n"); print}else{gsub(/}/,"\n&"); print}'}