# HG changeset patch # User Igor Sysoev # Date 1312551757 0 # Node ID cb90f030acfd2da00b67c85f92c3cfd221f56ea7 # Parent fc808f006ff4d6655aa786d47750dd01866a51a0 using sed instead of perl diff --git a/docs/GNUmakefile b/docs/GNUmakefile --- a/docs/GNUmakefile +++ b/docs/GNUmakefile @@ -10,7 +10,7 @@ define XSLScript com.pault.StyleSheet \ -x com.pault.XX -y com.pault.XX \ $(1) docs/xsls/dump.xsls \ - | perl -e 'undef $$/; $$_ = <>; s/(\n\n)+/\n/gs; print' > $(2) + | sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $(2) if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) endef