diff options
author | luxagraf <sng@luxagraf.net> | 2023-06-15 15:58:59 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-06-15 15:58:59 -0500 |
commit | ab987e10f154f5536bb8fd936ae0966e909fa969 (patch) | |
tree | 9de5076f38b71ececb1bc94f8d9d19170898d603 /compresscss.sh |
added all my scriptssynced/master
Diffstat (limited to 'compresscss.sh')
-rwxr-xr-x | compresscss.sh | 7 |
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` |