]> granicus.if.org Git - mutt/commitdiff
Add 'sortcheck' target to doc/Makefile.am
authorRocco Rutte <pdmef@gmx.net>
Thu, 2 Apr 2009 09:49:47 +0000 (11:49 +0200)
committerRocco Rutte <pdmef@gmx.net>
Thu, 2 Apr 2009 09:49:47 +0000 (11:49 +0200)
This should be used from time to time to check if vars are sorted.

Closes #3191.

ChangeLog
doc/Makefile.am

index 5c0e2acc803da6ba7514abcfa9147e107be00754..342a6cd0bb44a73658f001f8a490aca52c58e5e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-04-02 11:47 +0200  Rocco Rutte  <pdmef@gmx.net>  (e8cdc049cf84)
+
+       * init.h: Sort $pgp_* and $crypt_* vars, see #3191.
+
+2009-04-02 11:25 +0200  Rocco Rutte  <pdmef@gmx.net>  (86faf8f79beb)
+
+       * ChangeLog, init.h: Sort $smime_* vars, see #3191.
+
 2009-04-01 14:33 +0200  Miroslav Lichvar  <mlichvar@redhat.com>  (8205a12329d3)
 
        * hcache.c, muttlib.c: Use PATH_MAX for buffers passed to realpath(3)
index 2490b7d793b110fd0acf6ddd38a346768c387848..65d0176593919ad342fb30cd946fc2f13fdb3e01 100644 (file)
@@ -135,6 +135,11 @@ spellcheck:
        -aspell -l en --mode sgml -c manual.xml.head && \
        -aspell -l en --mode nroff -c muttrc.man.head
 
+sortcheck: manual.xml
+       sed -n -e '1,/^<sect1 id="variables">/d' -e '1,/^<sect1 id="functions">/s/<sect2 id="\([^"]*\)">/\1/p' < manual.xml > vars.tmp.1
+       sort < vars.tmp.1 > vars.tmp.2
+       diff -u vars.tmp.1 vars.tmp.2 | less
+
 clean-local:
        rm -f *~ *.html *.orig *.rej  stamp-doc-* *.ps mutt.1 muttrc.man
        rm -f *.aux *.log *.tex *.out