1#!/bin/bash
2# Copyright 2014 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6bugs=$(egrep -o 'bug_[0-9]+' tools/valgrind/memcheck/suppressions.txt |\
7    sed -e 's/bug_//' | sort -n | uniq);
8fixed_status='(Fixed|Verified|Duplicate|FixUnreleased|WontFix|Invalid|IceBox)'
9fixed_status="${fixed_status}</span>"
10for bug in $bugs; do
11  echo "Checking bug #$bug";
12  curl -s "http://code.google.com/p/chromium/issues/detail?id=$bug" |\
13     egrep -q $fixed_status;
14  if [ $? -eq 0 ]; then echo "Bug #$bug seems to be closed (http://crbug.com/$bug)"; fi
15done
16