Skip to content

Commit

Permalink
optimize-png-files.sh: drop svn commit support
Browse files Browse the repository at this point in the history
The project has moved on from svn long ago, so drop unused/dead support.

Bug: None
Change-Id: Ia5621a25dc8ca9502d3288514104fa702b641507
Reviewed-on: https://chromium-review.googlesource.com/1099139
Reviewed-by: agrieve <agrieve@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566848}
  • Loading branch information
vapier authored and Commit Bot committed Jun 13, 2018
1 parent da403bb commit b83f107
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tools/resources/optimize-png-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,6 @@ Options:
2 Aggressively optimize the size of png files. This may produce
addtional 1%~5% reduction. Warning: this is *VERY*
slow and can take hours to process all files.
-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.
Expand Down Expand Up @@ -440,19 +437,12 @@ fi

OPTIMIZE_LEVEL=1
# Parse options
while getopts o:c:r:h:v opts
while getopts o:c: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
echo "Revision $OPTARG not found"
show_help
fi
;;
o)
if [[ "$OPTARG" != 0 && "$OPTARG" != 1 && "$OPTARG" != 2 ]] ; then
show_help
Expand Down

0 comments on commit b83f107

Please sign in to comment.