xref: /aosp_15_r20/external/libchrome/libchrome_tools/files_not_built (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1*635a8641SAndroid Build Coastguard Worker#!/bin/bash
2*635a8641SAndroid Build Coastguard Worker# Copyright 2020 The Chromium OS Authors. All rights reserved.
3*635a8641SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be
4*635a8641SAndroid Build Coastguard Worker# found in the LICENSE file.
5*635a8641SAndroid Build Coastguard Worker#
6*635a8641SAndroid Build Coastguard Worker# List cc files not in BUILD.gn, and not excluded by patterns in BUILD.IGNORE
7*635a8641SAndroid Build Coastguard Worker# This list can be run by human for sanity check that no imporant things are
8*635a8641SAndroid Build Coastguard Worker# ignored after each uprev.
9*635a8641SAndroid Build Coastguard Worker
10*635a8641SAndroid Build Coastguard Workercd $(dirname $0)/..
11*635a8641SAndroid Build Coastguard Workerfind . -name '*.cc' \
12*635a8641SAndroid Build Coastguard Worker | sed -e 's/^\.\///g' \
13*635a8641SAndroid Build Coastguard Worker | xargs -n 1 -P 1 bash -c \
14*635a8641SAndroid Build Coastguard Worker   'for i in $(cat BUILD.IGNORE); do grep $i <(echo $0) >/dev/null && exit; done; echo $0' \
15*635a8641SAndroid Build Coastguard Worker | xargs -n 1 -P 1 sh -c 'grep $0 BUILD.gn >/dev/null || echo $0'
16*635a8641SAndroid Build Coastguard Worker
17