Commit 5ec2bb09 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Get rid of temporary intermediate file

Simplify generation of default.vcl somewhat.
parent 7109360d
...@@ -6,7 +6,7 @@ DISTCLEANFILES = default.vcl ...@@ -6,7 +6,7 @@ DISTCLEANFILES = default.vcl
dist_varnishconf_DATA = default.vcl dist_varnishconf_DATA = default.vcl
default.vcl: $(top_srcdir)/bin/varnishd/default.vcl default.vcl: $(top_srcdir)/bin/varnishd/default.vcl
@printf "This is a basic VCL configuration file for varnish. See the vcl(7)\n\ ( printf "This is a basic VCL configuration file for varnish. See the vcl(7)\n\
man page for details on VCL syntax and semantics.\n\ man page for details on VCL syntax and semantics.\n\
\n\ \n\
Default backend definition. Set this to point to your content\n\ Default backend definition. Set this to point to your content\n\
...@@ -19,7 +19,6 @@ backend default {\n\ ...@@ -19,7 +19,6 @@ backend default {\n\
\n\ \n\
Below is a commented-out copy of the default VCL logic. If you\n\ Below is a commented-out copy of the default VCL logic. If you\n\
redefine any of these subroutines, the built-in logic will be\n\ redefine any of these subroutines, the built-in logic will be\n\
appended to your code.\n" > tmp.vcl appended to your code.\n" ; \
@sed -n '/vcl_recv/,$$p' $(top_srcdir)/bin/varnishd/default.vcl >> tmp.vcl sed -n '/vcl_recv/,$$p' $(top_srcdir)/bin/varnishd/default.vcl ) | \
@sed 's/^\(.*\)$$/# \1/' tmp.vcl > default.vcl sed 's/^\(.*\)$$/# \1/' > default.vcl
@rm tmp.vcl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment