mirror of
https://github.com/openwrt/openwrt.git
synced 2024-11-23 01:45:38 +08:00
b8816343fb
This script will reorder the content of all config-* files in the target folder. It will also remove duplicates. It will not remove options already defined in the generic configuration. Link: https://github.com/openwrt/openwrt/pull/16743 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
17 lines
388 B
Bash
Executable File
17 lines
388 B
Bash
Executable File
#!/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
|
|
|