#!/bin/sh# Run headers_$1 command for all suitable architectures# Stop on errorset-edo_command(){if[-f${srctree}/arch/$2/include/asm/Kbuild ];thenmake ARCH=$2KBUILD_HEADERS=$1 headers_$1elseprintf"Ignoring arch: %s\n"${arch}fi}archs=$(ls${srctree}/arch)for arch in${archs};do case${arch}inum)# no userspace export;; cris)# headers export are known broken;;*)if[-d${srctree}/arch/${arch}];thendo_command $1${arch}fi;;esacdone