X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/330e20e6262283b2e68fc22227672250849985e1..6dfbbcf1e48147f4710583c23372986b9763d17c:/tools/stripcss?ds=sidebyside diff --git a/tools/stripcss b/tools/stripcss new file mode 100755 index 0000000..4b41f01 --- /dev/null +++ b/tools/stripcss @@ -0,0 +1,11 @@ +#!/usr/bin/env perl +use 5.014; +use warnings; + +while (<>) { + s!\s*/\*.*\*/\Z!!; # comments + s/^\s*//; # indentation and empty lines + s/\h+/ /g; # alignment + s/:\K\h//; # separators + print; +}