LemonLDAP::NG Web SSO
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
lemonldap-ng/scripts/minifiercss

21 lines
393 B

#!/usr/bin/perl -Iscripts
use CSS::Minifier 'minify';
foreach my $f (@ARGV) {
unless(-e $f) {
print STDERR "$f doesn't exists, skipping\n";
next;
}
unless(-w $f) {
print STDERR "$f is not writeable, skipping\n";
next;
}
my $s='';
open F, $f;
$s = minify(input => *F);
close F;
open F, ">$f";
print F $s;
close F;
}