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

Unified Diff: tools/resources/optimize-png-files.sh

Issue 2652983002: Add icons to redesigned CBD dialog. (Closed)
Patch Set: use tinting for cookies and form_data icon Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/resources/optimize-png-files.sh
diff --git a/tools/resources/optimize-png-files.sh b/tools/resources/optimize-png-files.sh
index ecee0675d8a333ae6e94be7ed79aa6b337dc38d2..b74f4d8c14663d855b63a658f63ddb0202456c07 100755
--- a/tools/resources/optimize-png-files.sh
+++ b/tools/resources/optimize-png-files.sh
@@ -415,6 +415,8 @@ Options:
-r<revision> If this is specified, the script processes only png files
changed since this revision. The <dir> options will be used
to narrow down the files under specific directories.
+ -c<commit> Same as -r but referencing a git commit. Only files changed
+ between this commit and HEAD will be processed.
-v Shows optimization process for each file.
-h Print this help text."
exit 1
@@ -446,9 +448,12 @@ fi
OPTIMIZE_LEVEL=1
# Parse options
-while getopts o:r:h:v opts
+while getopts o:c:r:h:v opts
do
case $opts in
+ c)
+ COMMIT=$OPTARG
+ ;;
r)
COMMIT=$(git svn find-rev r$OPTARG | tail -1) || exit
if [ -z "$COMMIT" ] ; then
@@ -541,7 +546,7 @@ if [ $PROCESSED_FILE != 0 ]; then
let diff=$TOTAL_OLD_BYTES-$TOTAL_NEW_BYTES
let percent=$diff*100/$TOTAL_OLD_BYTES
echo "Result: $TOTAL_OLD_BYTES => $TOTAL_NEW_BYTES bytes" \
- "($diff bytes: $percent%)"
+ "($diff bytes: $percent\%)"
fi
if [ $CORRUPTED_FILE != 0 ]; then
echo "Warning: corrupted files found: $CORRUPTED_FILE"
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferences.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698