Misc updates to header-symbol-search and handy_funcs
authorSteve Youngs <steve@steveyoungs.com>
Sun, 24 Jan 2021 05:32:04 +0000 (15:32 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Sun, 24 Jan 2021 05:32:04 +0000 (15:32 +1000)
commite7c12bb129bf1daaab26dbce4fd7dc76ea793553
tree97b0cdfe5256167b5874e9cb3a0acfd0eed9c4fc
parentc20bca25b5cd14ee811118882337fcf4bd226ac6
Misc updates to header-symbol-search and handy_funcs

header-symbol-search had broken, grep's '--mmap' option no longer
exists.  This patch fixes that, as well as getting rid of an obnoxious
loop.

In handy_funcs, the vtar and xtar functions have been replaced with
far simpler shell aliases.  See:

  vtar is aliased to 'less'
  xtar is aliased to 'tar xf'

* usr/bin/header-symbol-search (all_headers): Removed.
Forget slow-as-fuck looping, just recurse.

* etc/pkgusr/handy_funcs (xtar,vtar): Replaced with simpler
aliases.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/handy_funcs
usr/bin/header-symbol-search