blob: 9ab7858d49be96ea7f532c4035fa329dc6e2326c [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2
3# This script reorders all config-* files in the target directory.
4
5find_files=$(find target -type f -name 'config-*' -print)
6
7if [ -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
13else
14 echo "No files named config-* found."
15fi
16