]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
forgot to add genpartmaplist.sh
authorrobertmh <robertmh@localhost>
Sun, 13 Apr 2008 10:58:23 +0000 (10:58 +0000)
committerrobertmh <robertmh@localhost>
Sun, 13 Apr 2008 10:58:23 +0000 (10:58 +0000)
DISTLIST
genpartmaplist.sh [new file with mode: 0644]

index 1afbca1f121b0426cea2b536b8cf22f0065e2198..584561a8994e9f1384629d2102d00d4ee9ca5dcf 100644 (file)
--- 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 (file)
index 0000000..ba65049
--- /dev/null
@@ -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