0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-04-13 13:13:56 +00:00
Files
Lakka-LibreELEC/tools/packages-checker
luzpaz 91a4766cef treewide: fix typos
Found via `codespell -q 3 -S "*.patch,*.po" -L acount,afile,distroname,parm,serie,synopsys`
2025-02-03 07:04:59 -05:00

24 lines
871 B
Bash
Executable File

#!/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 committed.
# Corrections made:
# PKG_VAR="$PKG_VAR stuff" -> PKG_VAR+=" stuff"
# $PKG_VAR -> ${PKG_VAR}
# result=`subcommand` -> result=$(subcommand)
# [ test ] ; then -> [ test ]; then
# trailing whitespace at end of line
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}"
sed -i 's/[[:blank:]]*$//g' "${file}"
done
git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}"
done