Merge pull request #5043 from antonlacon/code-checker

tools/packages-checker: initial commit
This commit is contained in:
CvH 2021-02-06 20:03:29 +01:00 committed by GitHub
commit fa8f3a8b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
tools/packages-checker Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2020-2021 Ian Leonard (antonlacon@gmail.com)
# This performs an automated scan with corrections to the packages feed to
# follow certain coding standards used in the project. Corrections are grouped
# by the subdirectory within the packages feed, and then commited.
for directory in $(find packages/ -mindepth 1 -maxdepth 1 -type d | sort); do
for file in $(find "${directory}" -type f -name "package.mk" | sort); do
tools/fixlecode.py -qw -f "${file}"
done
git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}"
done