Exclude comment lines when generating raw
This commit is contained in:
parent
4491471318
commit
c941cf2453
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
SERVER=114.114.114.114
|
SERVER=114.114.114.114
|
||||||
|
|
||||||
raw:
|
raw:
|
||||||
sed -e 's|^server=/\(.*\)/114.114.114.114$$|\1|' accelerated-domains.china.conf > accelerated-domains.china.raw.txt
|
sed -e 's|^server=/\(.*\)/114.114.114.114$$|\1|' accelerated-domains.china.conf | egrep -v '^#' > accelerated-domains.china.raw.txt
|
||||||
|
|
||||||
dnsmasq: raw
|
dnsmasq: raw
|
||||||
sed -e 's|\(.*\)|server=/\1/$(SERVER)|' accelerated-domains.china.raw.txt > accelerated-domains.china.dnsmasq.conf
|
sed -e 's|\(.*\)|server=/\1/$(SERVER)|' accelerated-domains.china.raw.txt > accelerated-domains.china.dnsmasq.conf
|
||||||
|
|
Loading…
Reference in New Issue