summaryrefslogtreecommitdiff
path: root/compresscss.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compresscss.sh')
-rwxr-xr-xcompresscss.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/compresscss.sh b/compresscss.sh
new file mode 100755
index 0000000..ae8855e
--- /dev/null
+++ b/compresscss.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cat $1.css | \
+sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba' \
+| tr -d '\t' | tr -d ' ' | tr -d '\n' | tr -s ' ' ' ' > ~/sites/luxagraf.net/$1.min.css
+
+#rmcss=`ls -d $i | sed s/\.css//g`