chromium/net/data/verify_certificate_chain_unittest/generate-all.sh

#!/bin/bash

# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -e

for dir in */ ; do
  cd "$dir"

  if [ -f generate-chains.py ]; then
    python3 generate-chains.py

    # Cleanup temporary files.
    rm -rf */*.pyc
    rm -rf out/
  fi

  cd ..
done