diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2011-08-05 13:42:37 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2011-08-05 13:42:37 +0000 |
| commit | aa64c39b20c2e4d77392d9de4abf79a4c242a579 (patch) | |
| tree | 698536d0ce878fb47f041457738599d19f6f5bf2 /docs/GNUmakefile | |
| parent | a6c91b11bf77264badc714e53e710803cf181a73 (diff) | |
| download | nginx-aa64c39b20c2e4d77392d9de4abf79a4c242a579.tar.gz nginx-aa64c39b20c2e4d77392d9de4abf79a4c242a579.tar.bz2 | |
using sed instead of perl
Diffstat (limited to 'docs/GNUmakefile')
| -rw-r--r-- | docs/GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/GNUmakefile b/docs/GNUmakefile index 2d9d4182b..7d1eeba7d 100644 --- 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 |
