cookutils rev 1067

modules/compressor: compress_gif(): compress files with spaces in the file names (see amsn package)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 01:42:12 2018 +0300 (2018-06-06)
parents c69daec36de2
children c1db2b6009d0
files lighttpd/cooker.css lighttpd/index.cgi modules/compressor
line diff
     1.1 --- a/lighttpd/cooker.css	Wed Jun 06 00:53:16 2018 +0300
     1.2 +++ b/lighttpd/cooker.css	Wed Jun 06 01:42:12 2018 +0300
     1.3 @@ -382,6 +382,7 @@
     1.4  .summary th, .summary td { white-space: nowrap; width: 1rem; text-align: center; }
     1.5  .summary th:last-child, .summary td:last-child { width: unset; }
     1.6  
     1.7 +#webstat { height: 7em; }
     1.8  .webstat td { text-align: center; width: 16%; }
     1.9  .webstat td:first-child { text-align: unset; width: unset; }
    1.10  
     2.1 --- a/lighttpd/index.cgi	Wed Jun 06 00:53:16 2018 +0300
     2.2 +++ b/lighttpd/index.cgi	Wed Jun 06 01:42:12 2018 +0300
     2.3 @@ -890,7 +890,6 @@
     2.4  		return
     2.5  	fi
     2.6  
     2.7 -	echo '<div>'
     2.8  	case $1 in
     2.9  		summary)
    2.10  			echo '<h2>Summary</h2>'
    2.11 @@ -993,7 +992,6 @@
    2.12  			fi
    2.13  			;;
    2.14  	esac
    2.15 -	echo '</div>'
    2.16  }
    2.17  
    2.18  
     3.1 --- a/modules/compressor	Wed Jun 06 00:53:16 2018 +0300
     3.2 +++ b/modules/compressor	Wed Jun 06 01:42:12 2018 +0300
     3.3 @@ -398,7 +398,8 @@
     3.4  
     3.5  	if which gifsicle >/dev/null; then
     3.6  		the_log="$(mktemp)"
     3.7 -		for i in $(IFS=$'\n' find $install -type f -name '*.gif'); do
     3.8 +		IFS=$'\n'
     3.9 +		for i in $(find $install -type f -name '*.gif'); do
    3.10  			unset IFS
    3.11  			# use intermediate file, if all well ($?=0), then substitute the original
    3.12  			if gifsicle -O3 "$i" -o "$i.$$" >> "$the_log" 2>&1; then