summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig-reorder.sh
blob: 9ab7858d49be96ea7f532c4035fa329dc6e2326c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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