changeset 3997:cb90f030acfd

using sed instead of perl
author Igor Sysoev <igor@sysoev.ru>
date Fri, 05 Aug 2011 13:42:37 +0000
parents fc808f006ff4
children 131adbb6c82d
files docs/GNUmakefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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