b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # This script reorders all config-* files in the target directory. | ||||
4 | |||||
5 | find_files=$(find target -type f -name 'config-*' -print) | ||||
6 | |||||
7 | if [ -n "$find_files" ]; then | ||||
8 | for file in $find_files; do | ||||
9 | echo "Reordering options in $file" | ||||
10 | LANG=C ./scripts/kconfig.pl '+' "$file" /dev/null > "$file"-new | ||||
11 | mv "$file"-new "$file" | ||||
12 | done | ||||
13 | else | ||||
14 | echo "No files named config-* found." | ||||
15 | fi | ||||
16 |