2021-05-21 18:30:27 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source /etc/profile
|
|
|
|
|
|
|
|
cd $(cd "$(dirname "$0")";pwd)
|
|
|
|
|
|
|
|
php make-addr.php
|
|
|
|
echo
|
2021-05-30 18:45:01 +08:00
|
|
|
echo "!Title: anti-AD for AdGuard" > ../anti-ad-adguard.txt
|
2021-07-03 22:58:40 +08:00
|
|
|
echo "!Version: $(date "+%Y%m%d%H%M%S%N")" >> ../anti-ad-adguard.txt
|
2023-12-20 00:05:37 +08:00
|
|
|
echo "!Last modified: $(date -u)" >> ../anti-ad-adguard.txt
|
2024-02-03 15:54:02 +08:00
|
|
|
echo "!Updated: $(date --iso-8601=seconds)" >> ../anti-ad-adguard.txt
|
2023-01-07 14:56:36 +08:00
|
|
|
echo "!Expires: 4 days" >> ../anti-ad-adguard.txt
|
2021-05-30 18:45:01 +08:00
|
|
|
echo "!Homepage: https://anti-ad.net/" >> ../anti-ad-adguard.txt
|
2021-05-30 18:47:51 +08:00
|
|
|
echo "!!!note! If you are using \"AdGuard Home\", please load https://anti-ad.net/easylist.txt" >> ../anti-ad-adguard.txt
|
2021-05-30 18:45:01 +08:00
|
|
|
echo "!Total lines: 00000" >> ../anti-ad-adguard.txt
|
|
|
|
grep -vE '^!' ../anti-ad-easylist.txt >> ../anti-ad-adguard.txt
|
2021-05-21 18:30:27 +08:00
|
|
|
php ./tools/adguard-extend.php ../anti-ad-adguard.txt
|
|
|
|
php ./tools/easylist-extend.php ../anti-ad-easylist.txt
|