Merge pull request #5707 from antonlacon/whitespace

packages-checker: remove trailing whitespace
This commit is contained in:
CvH 2021-10-02 13:35:36 +02:00 committed by GitHub
commit 2f7157f418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 8 deletions

View File

@ -179,7 +179,7 @@ pre_make_target() {
continue continue
fi fi
if [ "$($PKG_BUILD/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then if [ "$(${PKG_BUILD}/scripts/config --state ${OPTION%%=*})" != "${OPTION##*=}" ]; then
MISSING_KERNEL_OPTIONS+="\t${OPTION}\n" MISSING_KERNEL_OPTIONS+="\t${OPTION}\n"
fi fi
done < ${DISTRO_DIR}/${DISTRO}/kernel_options done < ${DISTRO_DIR}/${DISTRO}/kernel_options

View File

@ -7,9 +7,17 @@
# follow certain coding standards used in the project. Corrections are grouped # follow certain coding standards used in the project. Corrections are grouped
# by the subdirectory within the packages feed, and then commited. # by the subdirectory within the packages feed, and then commited.
# 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 directory in $(find packages/ -mindepth 1 -maxdepth 1 -type d | sort); do
for file in $(find "${directory}" -type f -name "package.mk" | sort); do for file in $(find "${directory}" -type f -name "package.mk" | sort); do
tools/fixlecode.py -qw -f "${file}" tools/fixlecode.py -qw -f "${file}"
sed -i 's/[[:blank:]]*$//g' "${file}"
done done
git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}" git commit -qs -m "${directory##*/}: automated code cleanup" "${directory}"
done done