kconfig-reorder.sh 388 B

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