2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>

Simplify sed expressions and improve awk

	* Makefile.in (install-local): simplify sed expression
	* gencmdlist.sh: likewise
	* genmoddep.awk: avoid adding module as a dependency of itself
This commit is contained in:
phcoder 2009-06-04 19:39:51 +00:00
parent 5b889789b1
commit fb14123e01
4 changed files with 14 additions and 4 deletions

View File

@ -1,9 +1,17 @@
2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
Simplify sed expressions and improve awk
* Makefile.in (install-local): simplify sed expression
* gencmdlist.sh: likewise
* genmoddep.awk: avoid adding module as a dependency of itself
2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
Add missing start symbols
* boot/i386/pc/boot.S: add start
boot/i386/pc/pxeboot.S: likewise
* boot/i386/pc/pxeboot.S: likewise
2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>

View File

@ -213,7 +213,7 @@ install-local: all
for file in $$list; do \
if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
dest="`echo $$file | sed 's,include/,,'`"; \
destdir="`echo $$dest | sed 's,\(^\|/\)[^/]*$$,,g'`"; \
destdir="`echo $$dest | sed 's,[^/]*$$,,g'`"; \
$(mkinstalldirs) $(DESTDIR)$(includedir)/$$destdir; \
if test -f "$$dir$$file"; then \
$(INSTALL_DATA) $$dir$$file $(DESTDIR)$(includedir)/$$dest; \

View File

@ -17,4 +17,6 @@ module=$1
grep -v "^#" | sed -n \
-e "/grub_register_command *( *\"/{s/.*( *\"\([^\"]*\)\".*/\1: $module/;p;}" \
-e "/\(grub_register_extcmd\|grub_register_command_p1\) *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $module/;p;}"
-e "/grub_register_extcmd *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $module/;p;}" \
-e "/grub_register_command_p1 *( *\"/{s/.*( *\"\([^\"]*\)\".*/*\1: $module/;p;}"

View File

@ -50,7 +50,7 @@ END {
for (i in depmods) {
depmod = depmods[i];
# Ignore kernel, as always loaded.
if (depmod != "kernel")
if (depmod != "kernel" && depmod != mod)
uniqmods[depmod] = 1;
}
modlist = ""