Merge pull request #78 from hexchain/makefile-remove-comments

Exclude comment lines when generating raw
This commit is contained in:
Felix Yan 2015-04-10 11:59:42 +08:00
commit 45eb3019d8
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
SERVER=114.114.114.114
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
sed -e 's|\(.*\)|server=/\1/$(SERVER)|' accelerated-domains.china.raw.txt > accelerated-domains.china.dnsmasq.conf