2008-08-02 Robert Millan <rmh@aybabtu.com>
[grub2/jjazz.git] / genpartmaplist.sh
blobba6504999b3e3dc3e7cd210ca12e4aea687db079
1 #! /bin/sh
3 # Copyright (C) 2005, 2008 Free Software Foundation, Inc.
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.
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.
14 # Read source code from stdin and detect partmap names.
16 module=$1
18 # For now, this emits only a module name, if the module registers a partition map.
19 if grep -v "^#" | grep '^ *grub_partition_map_register' >/dev/null 2>&1; then
20 echo $module