Commit d7e46839 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[PATCH] docbook: scripts/docproc improved [5/9]

This is the first patch in a serie to clean-up the DocBook
Makefile.

docproc is extented to include the functionality previously provided by
gen-all-syms and docgen.  Furthermore the necessity to specify which
files to search for EXPORT_SYMBOL are removed, the information is now
read in the .tmpl files.

docproc is furthermore extended to generate dependency information.
gen-all-syms and docgen are deleted.
parent fa3faf80
......@@ -7,7 +7,7 @@
# can't do it
CHMOD_FILES := docgen gen-all-syms kernel-doc mkcompile_h makelst
all: fixdep split-include $(CHMOD_FILES)
all: fixdep split-include docproc $(CHMOD_FILES)
$(CHMOD_FILES): FORCE
@chmod a+x $@
......@@ -37,11 +37,6 @@ kconfig.tk: $(TOPDIR)/arch/$(ARCH)/config.in tkparse $(HEADER) $(TAIL) FORCE
) > $@
chmod 755 $@
# DocBook stuff
# ---------------------------------------------------------------------------
doc-progs: docproc
# ---------------------------------------------------------------------------
.PHONY: lxdialog
......
#!/bin/sh
set -e
if [ -z "$scripts_objtree" ]
then
X=`$TOPDIR/scripts/gen-all-syms "$*"`
$TOPDIR/scripts/docproc $X
else
X=`${scripts_objtree}gen-all-syms "$*"`
TOPDIR=. ${scripts_objtree}docproc $X
fi
This diff is collapsed.
#!/bin/sh
for i in $*
do
grep "EXPORT_SYMBOL.*(.*)" "$i" \
| sed -e "s/EXPORT_SYMBOL.*(/ /" \
| sed -e "s/).*$//" | sed -e "s/^ //"
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment