update research shell script

This commit is contained in:
gently 2019-12-29 11:09:58 +08:00
parent 9d2c6acd2a
commit 8e2a8facfa

View File

@ -6,8 +6,8 @@ cd $(cd "$(dirname "$0")";pwd)
nohup php research-addr.php >> ./std-research.out nohup php research-addr.php >> ./std-research.out
cd ../dist/ cd ../dist/
sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-full.conf > anti-ad-easylist-full.conf sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-full.conf > anti-ad-easylist-full.txt
sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-basic.conf > anti-ad-easylist-basic.conf sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-basic.conf > anti-ad-easylist-basic.txt
sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-basic.conf >anti-ad-surge-basic.txt sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-basic.conf >anti-ad-surge-basic.txt
sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-full.conf >anti-ad-surge-full.txt sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-full.conf >anti-ad-surge-full.txt
sed -i '3 i [RULE]' anti-ad-surge-basic.txt sed -i '3 i [RULE]' anti-ad-surge-basic.txt
@ -15,4 +15,6 @@ sed -i '3 i [RULE]' anti-ad-surge-full.txt
cd ../tools cd ../tools
php easylist-extend.php dist/anti-ad-easylist-basic.txt
php easylist-extend.php dist/anti-ad-easylist-full.txt
rm -f std-split-tmp-list_*.out rm -f std-split-tmp-list_*.out