using sed instead of perl

This commit is contained in:
Igor Sysoev 2011-08-05 13:42:37 +00:00
parent a6c91b11bf
commit aa64c39b20

View File

@ -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