[slime-devel] Sorting contributors by last name

Michael Weber michaelw+slime at foldr.org
Tue Jun 22 12:40:28 UTC 2004


Hi,

attached is a small patch which sorts the Contributors section in the
slime docs by last name.  Of course it is a heuristic (uses last
_word_ as main sorting key), but it works for non-funky cases. (Patch
is attached.)

On request I can get rid of the AWK dependency (from
texinfo-tabulate.awk), but my replacement sed expression does not
exactly make the whole thing look prettier (though it is rather
short), so I'd leave it for now.

I resisted trying to do the sorting with sed, so perhaps there is
still hope for me... :)


Cheers,
Michael
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /project/slime/cvsroot/slime/doc/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	16 Apr 2004 19:31:11 -0000	1.3
+++ Makefile	22 Jun 2004 12:18:46 -0000
@@ -42,10 +42,10 @@
 # Some special-case TeX-escaping of international characters.
 contributors.texi: ../ChangeLog Makefile texinfo-tabulate.awk
 	cat ../ChangeLog | \
-	grep '^[0-9]' | \
-	sed -e 's/^[^ ]* *//' -e 's/ *<.*//' | \
-	(cat; echo 'Eric Marsden') | \
-	sort -u | \
+	sed -n -e '/^[0-9]/{s/^[^ ]* *//; s/ *<.*//; s/.* \(.*\)/\1|&/; p;}'| \
+	(cat; echo 'Marsden|Eric Marsden') | \
+	sort -du| \
+	sed -e 's/.*|//' | \
 	awk -f texinfo-tabulate.awk | \
 	sed -e 's/\o370/@norsko{}/g' \
 	> $@


More information about the slime-devel mailing list