mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
added TAB checker script, to be added to the PR checker action
This commit is contained in:
parent
cbbdd3d9cf
commit
59d386e18f
7
.github/checks/Makefile
vendored
Normal file
7
.github/checks/Makefile
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
.PHONY: tabs
|
||||||
|
|
||||||
|
check: tabs
|
||||||
|
|
||||||
|
tabs: tabs.sh
|
||||||
|
@./tabs.sh
|
16
.github/checks/tabs.sh
vendored
Executable file
16
.github/checks/tabs.sh
vendored
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
OLDCWD=`pwd`
|
||||||
|
SCRIPT_PATH=`dirname $0`
|
||||||
|
cd $SCRIPT_PATH/../../
|
||||||
|
|
||||||
|
FILES=`find $CHECK_PATH -type f \( \( -name \*.inc -a \! -name Makefile.inc \) -o -name \*.cfg -o -name \*.c -o -name \*.s -o -name \*.h -o -name \*.asm -o -name \*.sgml \) -print | xargs grep -l $'\t' | grep -v "libwrk/" | grep -v "testwrk/"`
|
||||||
|
|
||||||
|
cd $OLDCWD
|
||||||
|
|
||||||
|
if [ x"$FILES"x != xx ]; then
|
||||||
|
echo "error: found TABs in the following files:"
|
||||||
|
for n in $FILES; do
|
||||||
|
echo $n
|
||||||
|
done
|
||||||
|
exit -1
|
||||||
|
fi
|
5
Makefile
5
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: all mostlyclean clean install zip avail unavail bin lib doc html info samples test util
|
.PHONY: all mostlyclean clean install zip avail unavail bin lib doc html info samples test util check
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
@ -24,6 +24,9 @@ samples:
|
|||||||
test:
|
test:
|
||||||
@$(MAKE) -C test --no-print-directory $@
|
@$(MAKE) -C test --no-print-directory $@
|
||||||
|
|
||||||
|
check:
|
||||||
|
@$(MAKE) -C .github/checks --no-print-directory $@
|
||||||
|
|
||||||
util:
|
util:
|
||||||
@$(MAKE) -C util --no-print-directory $@
|
@$(MAKE) -C util --no-print-directory $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user