TWiki> Cenkes Web>SortingCategoryMakefiles (05 Oct 2007, Main.AndrewPantyukhin)EditAttach
Tags:
create new tag
, view all tags

Sorting Category Makefiles

This tiny feat started with PR ports/112052 by Jason Harris <jharris@widomaker.com>. The goal is to sort SUBDIR statements in all category Makefiles in one go. I had to write a dumb perl script to do selective sorts.

  • cd to empty dir
  • pcvs co ports/Makefile
  • for i in `make -f ports/Makefile -V SUBDIR`;echo ports/$i/Makefile>>list
  • pcvs co `cat list`
  • wc ports/*/Makefile>wc-pre
  • selsort -i -e "SUBDIR" ports/*/Makefile
  • wc ports/*/Makefile>wc-post
  • diff -u wc-*
  • test by building index with the new Makefiles
  • pcvs di ports/*/Makefile|cdiff
  • pcvs ci ports/*/Makefile

-- Main.AndrewPantyukhin - 05 Oct 2007

Topic revision: r1 - 05 Oct 2007 - 23:34:59 - Main.AndrewPantyukhin
 

Cenkes - IT Pro Bono