From 5325687fc623661461de5fcf36f4cff8421ce110 Mon Sep 17 00:00:00 2001 From: robertmh Date: Sun, 13 Apr 2008 10:58:23 +0000 Subject: [PATCH] forgot to add genpartmaplist.sh --- DISTLIST | 1 + genpartmaplist.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 genpartmaplist.sh diff --git a/DISTLIST b/DISTLIST index 1afbca1f1..584561a89 100644 --- a/DISTLIST +++ b/DISTLIST @@ -24,6 +24,7 @@ genkernsyms.sh.in genmk.rb genmoddep.awk genmodsrc.sh +genpartmaplist.sh gensymlist.sh.in install-sh mkinstalldirs diff --git a/genpartmaplist.sh b/genpartmaplist.sh new file mode 100644 index 000000000..ba6504999 --- /dev/null +++ b/genpartmaplist.sh @@ -0,0 +1,21 @@ +#! /bin/sh +# +# Copyright (C) 2005, 2008 Free Software Foundation, Inc. +# +# This script is free software; the author +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +# Read source code from stdin and detect partmap names. + +module=$1 + +# For now, this emits only a module name, if the module registers a partition map. +if grep -v "^#" | grep '^ *grub_partition_map_register' >/dev/null 2>&1; then + echo $module +fi