blob: 5e12c956ca1785e8f0d30e9fa8b3e063fc32eaeb [file] [log] [blame]
Martin Roth721ee012016-01-25 15:12:21 -07001#!/bin/sh
2# This file is part of the coreboot project.
3#
4# Copyright 2016 Google Inc.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; version 2 of the License, or (at your option)
9# any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# DESCR: Check that source files are not executable
17
18LC_ALL=C export LC_ALL
19find src -type f -a \( -perm -100 -o -perm -010 -o -perm -001 \) -a \! -name '*.sh'| \
20 sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.,"