1#!/bin/bash 2# Copyright 2020 The ChromiumOS Authors 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6# Iterates over all programs and runs the specified script. 7SCRIPT=$1 8 9if [[ -z "${SCRIPT}" ]]; then 10 echo "Script to run is required." 11 exit 1 12fi 13 14cd ../../program 15for program in *; do 16 cd "${program}" 17 echo "Running ${SCRIPT} for ${program}" 18 ../../config/scripts/${SCRIPT} ${program} 19 cd .. 20done 21