Package: wims / 2:4.29a+dfsg1-3

yuicompressor.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Index: wims/public_html/gifs/themes/mkindex
===================================================================
--- wims.orig/public_html/gifs/themes/mkindex
+++ wims/public_html/gifs/themes/mkindex
@@ -104,9 +104,9 @@ for j in `ls` ; do
 
     # Si un fichier "icon_orig.css" existe, alors c'est celui-ci qui est minifie
     if [ -s "$j/icon_orig.css" ] ; then
-      java -jar ../../themes/yuicompressor $j/icon_orig.css -o $j/icon-min.css -v;
+      yui-compressor $j/icon_orig.css -o $j/icon-min.css -v;
     else
-      java -jar ../../themes/yuicompressor $j/icon.css -o $j/icon-min.css -v;
+      yui-compressor $j/icon.css -o $j/icon-min.css -v;
     fi;
     echo "$j icon theme done."
   fi;
Index: wims/public_html/themes/mkcss.pl
===================================================================
--- wims.orig/public_html/themes/mkcss.pl
+++ wims/public_html/themes/mkcss.pl
@@ -68,7 +68,7 @@ for my $f (glob("*/*.css.template"), glo
 
  out("$f2" ,$TEXT);
  $/ = undef;
- system("java -jar yuicompressor $f2 -o $f1 -v; rm $f2");
+ system("yui-compressor $f2 -o $f1 -v; rm $f2");
 }
 
 sub t { my ($c1,$c2,$L)=@_; $L->{$c1}=$c2};