tools: separate stripcss script to build css
[sheet.git] / tools / stripcss
diff --git a/tools/stripcss b/tools/stripcss
new file mode 100755 (executable)
index 0000000..4b41f01
--- /dev/null
@@ -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;
+}