projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1115b82
)
Use brotli in make_static.PL if available
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 19 Mar 2017 13:20:30 +0000
(15:20 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 19 Mar 2017 13:20:38 +0000
(15:20 +0200)
(cherry picked from commit
ff4a482ff70a3ff572ae8a3dd23de0ba5ebf4989
)
make_static.PL
patch
|
blob
|
blame
|
history
diff --git
a/make_static.PL
b/make_static.PL
index 177231ed93c4129bef83c2d1a4a97e4fea1694ab..77ab59f894e590dfbadf9bb3626a970f94c0abd3 100644
(file)
--- a/
make_static.PL
+++ b/
make_static.PL
@@
-17,7
+17,9
@@
mkdir 'static/logos';
sub gzip_file {
my ($file) = @_;
+ my $brotli = which 'brotli';
my $zopfli = which 'zopfli';
+ system $brotli => '--input', $file, '--output', "$file.br" if $brotli;
system $zopfli => $file if $zopfli;
gzip $file => "$file.gz", -Level => 9, Minimal => 1 unless $zopfli;
}
This page took
0.010865 seconds
and
4
git commands to generate.