aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-07-22 19:53:26 +1000
committerGravatar axel <axel@liljencrantz.se>2006-07-22 19:53:26 +1000
commit0aff94dd4ca08f236dca928eab494a5e9ea91638 (patch)
tree0573d6befa8c80c490682add0e02c8367136ce66 /Makefile.in
parent431850b4ec8445dd33d2dac11ce0dcece5e9a638 (diff)
Automatically sort manuals for builtins and commands when generating manual
darcs-hash:20060722095326-ac50b-6d1cdefa7fb3e6f71368be2a205e9ed9e84a1624.gz
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 4 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in
index 8f3c459e..342794e6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -92,9 +92,7 @@ MIME_OBJS := mimedb.o xdgmimealias.o xdgmime.o xdgmimeglob.o \
xdgmimeint.o xdgmimemagic.o xdgmimeparent.o wutil.o common.o
#
-# Files containing documentation for builtins. Should be listed
-# alphabetically, since this is the order in which they will be written
-# in the help file.
+# Files containing documentation for builtins.
#
BUILTIN_DOC_SRC := doc_src/source.txt doc_src/and.txt \
doc_src/begin.txt doc_src/bg.txt doc_src/bind.txt \
@@ -115,9 +113,7 @@ BUILTIN_DOC_SRC := doc_src/source.txt doc_src/and.txt \
BUILTIN_DOC_HDR := $(BUILTIN_DOC_SRC:.txt=.doxygen)
#
-# Files containing documentation for external commands. Should be listed
-# alphabetically, since this is the order in which they will be written
-# in the help file.
+# Files containing documentation for external commands.
#
CMD_DOC_SRC := doc_src/contains.txt doc_src/count.txt doc_src/dirh.txt \
doc_src/dirs.txt doc_src/fish_pager.txt doc_src/fishd.txt \
@@ -238,11 +234,11 @@ xsel-0.9.6/xsel: xsel-0.9.6
doc.h:$(BUILTIN_DOC_SRC) $(CMD_DOC_SRC) doc_src/doc.hdr
cat doc_src/doc.hdr >doc.h;
echo "/** \page builtins Builtin commands" >>doc.h;
- cat $(BUILTIN_DOC_SRC) >>doc.h;
+ cat `printf "%s\n" $(BUILTIN_DOC_SRC)|sort` >>doc.h;
echo "*/" >>doc.h
echo "/** \page commands External commands" >>doc.h;
echo "\c fish is shipped with commands which do not use any internal parts of the shell, and are therefore not written as builtins, but separate commands." >>doc.h
- cat $(CMD_DOC_SRC) >>doc.h;
+ cat `printf "%s\n" $(CMD_DOC_SRC)|sort` >>doc.h;
echo "*/" >>doc.h
# This rule creates complete doxygen headers from each of the various