Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Issue 291153007: Update optimize_png_files.sh to work on msysgit bash. (Closed)

Created:
6 years, 7 months ago by Peter Kasting
Modified:
6 years, 7 months ago
Reviewers:
oshima
CC:
chromium-reviews
Visibility:
Public.

Description

Update optimize_png_files.sh to work on msysgit bash. This bash is moderately archaic (version 3), and various tools (e.g. tput) are missing. This also modifies the ouput of the script so that in verbose mode, as it runs, each filename is trimmed to fit on one line, including the throbber, then replaced by the full filename when printing the final file status. This makes for a cleaner output spew with long filenames in particular. BUG=none TEST=none R=oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272364

Patch Set 1 #

Total comments: 5

Patch Set 2 : Re-add steps #

Patch Set 3 : Take 2 #

Patch Set 4 : echo -> info #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -47 lines) Patch
M tools/resources/optimize-png-files.sh View 1 2 3 23 chunks +70 lines, -47 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Kasting
6 years, 7 months ago (2014-05-21 02:55:30 UTC) #1
oshima
https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh File tools/resources/optimize-png-files.sh (left): https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh#oldcode166 tools/resources/optimize-png-files.sh:166: info -n "|random" why removing them? https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh File tools/resources/optimize-png-files.sh ...
6 years, 7 months ago (2014-05-22 18:51:43 UTC) #2
Peter Kasting
https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh File tools/resources/optimize-png-files.sh (left): https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh#oldcode166 tools/resources/optimize-png-files.sh:166: info -n "|random" On 2014/05/22 18:51:43, oshima wrote: > ...
6 years, 7 months ago (2014-05-22 18:57:30 UTC) #3
oshima
https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh File tools/resources/optimize-png-files.sh (left): https://codereview.chromium.org/291153007/diff/1/tools/resources/optimize-png-files.sh#oldcode166 tools/resources/optimize-png-files.sh:166: info -n "|random" On 2014/05/22 18:57:31, Peter Kasting wrote: ...
6 years, 7 months ago (2014-05-22 20:38:04 UTC) #4
Peter Kasting
PTAL. I re-added step display for -v. Now we reserve sufficient space to display the ...
6 years, 7 months ago (2014-05-22 22:25:30 UTC) #5
oshima
ok, lgtm I'll add verbose level.
6 years, 7 months ago (2014-05-22 22:48:00 UTC) #6
Peter Kasting
On 2014/05/22 22:48:00, oshima wrote: > I'll add verbose level. Do you want me to ...
6 years, 7 months ago (2014-05-22 22:49:51 UTC) #7
oshima
On 2014/05/22 22:49:51, Peter Kasting wrote: > On 2014/05/22 22:48:00, oshima wrote: > > I'll ...
6 years, 7 months ago (2014-05-22 23:03:39 UTC) #8
Peter Kasting
Changed echo -> info and did not add any verbosity levels, per IM discussion. Landing.
6 years, 7 months ago (2014-05-22 23:28:35 UTC) #9
Peter Kasting
6 years, 7 months ago (2014-05-22 23:33:05 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 manually as r272364 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698