0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git/ synced 2025-10-06 01:52:57 +02:00
Files
openwrt/scripts/kconfig-reorder.sh

17 lines
388 B
Bash
Raw Normal View History

#!/bin/sh
# This script reorders all config-* files in the target directory.
find_files=$(find target -type f -name 'config-*' -print)
if [ -n "$find_files" ]; then
for file in $find_files; do
echo "Reordering options in $file"
LANG=C ./scripts/kconfig.pl '+' "$file" /dev/null > "$file"-new
mv "$file"-new "$file"
done
else
echo "No files named config-* found."
fi