genhandlerlist.sh 639 B

1234567891011121314151617181920
  1. #! /bin/sh
  2. #
  3. # Copyright (C) 2009 Free Software Foundation, Inc.
  4. #
  5. # This script is free software; the author
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  11. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  12. # PARTICULAR PURPOSE.
  13. # Read source code from stdin and detect command names.
  14. module=$1
  15. grep -v "^#" | sed -n \
  16. -e "/grub_parser_register *( *\"/{s/.*( *\"\([^\"]*\)\".*/parser.\1: $module/;p;}"