aboutsummaryrefslogtreecommitdiff
path: root/scripts/sort-makefile-lines.py
AgeCommit message (Collapse)AuthorFilesLines
2025-01-01Update copyright dates with scripts/update-copyrightsPaul Eggert1-1/+1
2024-02-15sort-makefile-lines.py: Allow '_' in name and "^# name"H.J. Lu1-2/+2
'_' is used in Makefile variable names and many variables end with "^# name". Relax sort-makefile-lines.py to allow '_' in name and "^# name" as variable end. This fixes BZ #31385.
2024-01-01Update copyright dates with scripts/update-copyrightsPaul Eggert1-1/+1
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>