aboutsummaryrefslogtreecommitdiff
path: root/scripts/sort-makefile-lines.py
AgeCommit message (Collapse)AuthorFilesLines
2023-06-02Fix a few more typos I missed in previous round -- BZ 25337Paul Pluzhnikov1-3/+3
2023-05-18scripts: sort-makefile-lines.pyCarlos O'Donell1-1/+4
We must return < 0, 0, or > 0 as the result of the comparison function for cmp_to_key() to work correctly across all comparisons. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2023-05-10scripts: Add sort-makefile-lines.py to sort Makefile variables.Carlos O'Donell1-0/+160
The scripts/sort-makefile-lines.py script sorts Makefile variables according to project expected order. The script can be used like this: $ scripts/sort-makefile-lines.py < elf/Makefile > elf/Makefile.tmp $ mv elf/Makefile.tmp elf/Makefile Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>