scripts: Add sort-makefile-lines.py to sort Makefile variables.
commit1270549a267eb4c8b8dda7fd9a91d7f14968d58f
authorCarlos O'Donell <carlos@redhat.com>
Tue, 18 Apr 2023 15:02:55 +0000 (18 11:02 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Wed, 10 May 2023 17:14:52 +0000 (10 13:14 -0400)
tree5589b49b06ebd10298d896e6a5f358a1f5b2ef71
parentab5aa2ee3d3f978e474803cbbc5fe805ad30e293
scripts: Add sort-makefile-lines.py to sort Makefile variables.

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>
scripts/sort-makefile-lines.py [new file with mode: 0755]