1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-06 01:29:31 +00:00
cc65/.github/checks/noexec.sh

19 lines
444 B
Bash
Raw Permalink Normal View History

2022-05-17 13:28:41 +00:00
#! /bin/bash
OLDCWD=`pwd`
SCRIPT_PATH=`dirname $0`
CHECK_PATH=.
cd $SCRIPT_PATH/../../
FILES=`find $CHECK_PATH -executable -type f \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.mac -o -name \*.asm -o -name \*.sgml \) -print`
cd $OLDCWD
if [ x"$FILES"x != xx ]; then
echo "error: executable flag is set for the following files:" >&2
for n in $FILES; do
echo $n >&2
done
exit -1
fi