summaryrefslogtreecommitdiffstats
path: root/tools/resources
diff options
context:
space:
mode:
authorrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-16 19:57:14 +0000
committerrouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-16 19:57:14 +0000
commit41bac353627fdd9ef0cd8a983f6fe88f3b9c78d7 (patch)
tree24874e16bedce7d45e75f48cc74ad7b5b5bedce0 /tools/resources
parentafb59f5fd23a2392761e8be2e4a23bcc63b4a1fd (diff)
downloadchromium_src-41bac353627fdd9ef0cd8a983f6fe88f3b9c78d7.zip
chromium_src-41bac353627fdd9ef0cd8a983f6fe88f3b9c78d7.tar.gz
chromium_src-41bac353627fdd9ef0cd8a983f6fe88f3b9c78d7.tar.bz2
Install png optimization commands for optimization levels >= 1
The script optimize-png-files.sh requires optipng, advdef, and pngout when running at optimization levels 1 and 2, but checks for these tools only at level 2. This CL changes optimize-png-files.sh to also check for the required tools at level 1 optimization. TEST=Uninstall optipng and run the script with -o1 parameter. R=oshima@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/23757043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/resources')
-rwxr-xr-xtools/resources/optimize-png-files.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/resources/optimize-png-files.sh b/tools/resources/optimize-png-files.sh
index 3154826..196c5e4 100755
--- a/tools/resources/optimize-png-files.sh
+++ b/tools/resources/optimize-png-files.sh
@@ -391,7 +391,7 @@ done
# Make sure we have all necessary commands installed.
install_if_not_installed pngcrush pngcrush
-if [ $OPTIMIZE_LEVEL == 2 ]; then
+if [ $OPTIMIZE_LEVEL -ge 1 ]; then
install_if_not_installed optipng optipng
if $using_cygwin ; then