2008-04-02 Pavel Roskin <proski@gnu.org>

* genkernsyms.sh.in: Use more robust assignments for CC and
	srcdir.  Quote srcdir.
	* gensymlist.sh.in: Likewise.  Assert at the compile time that
	the symbol table is not empty.
This commit is contained in:
proski 2008-04-02 07:29:59 +00:00
parent ba7328dcba
commit 26887f221a
3 changed files with 14 additions and 6 deletions

View file

@ -13,10 +13,10 @@
### The configure script will replace these variables.
srcdir=@srcdir@
CC="@CC@"
: ${srcdir=@srcdir@}
: ${CC=@CC@}
$CC -DGRUB_SYMBOL_GENERATOR=1 -E -I. -Iinclude -I$srcdir/include $* \
$CC -DGRUB_SYMBOL_GENERATOR=1 -E -I. -Iinclude -I"$srcdir/include" $* \
| grep -v '^#' \
| sed -n \
-e '/EXPORT_FUNC *([a-zA-Z0-9_]*)/{s/.*EXPORT_FUNC *(\([a-zA-Z0-9_]*\)).*/\1 kernel/;p;}' \