mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
using sed instead of perl
This commit is contained in:
parent
a6c91b11bf
commit
aa64c39b20
@ -10,7 +10,7 @@ define XSLScript
|
|||||||
com.pault.StyleSheet \
|
com.pault.StyleSheet \
|
||||||
-x com.pault.XX -y com.pault.XX \
|
-x com.pault.XX -y com.pault.XX \
|
||||||
$(1) docs/xsls/dump.xsls \
|
$(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)
|
if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user