ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
24 lines
505 B
Python
Executable File
24 lines
505 B
Python
Executable File
#! /usr/bin/env python3
|
|
|
|
import argparse
|
|
import glob
|
|
import re
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ret = 0
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('path')
|
|
|
|
args = parser.parse_args()
|
|
|
|
for fn in glob.glob(str(Path(args.path) / '*.fncs')):
|
|
with open(fn) as f:
|
|
for i, line in enumerate(f):
|
|
if re.search(r'[\w\[\]]+\s+@ARG', line, re.A):
|
|
ret = 1
|
|
print("{file}:{line}\t{str}".format(file=fn, line=i+1, str=line.rstrip()))
|
|
|
|
sys.exit(ret)
|