git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ 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;
+}