Skip to content

Commit c267d4a

Browse files
clone and out
1 parent e1d8d7a commit c267d4a

1 file changed

Lines changed: 36 additions & 12 deletions

File tree

.github/workflows/update.yml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,43 @@ jobs:
2020
cd **/hostsblock
2121
make
2222
cd -
23-
git clone https://github.com/easylist/easylist.git
24-
subdirectories=("./easylist/easylist" "./easylist/easylist_adult" "./easylist/easylist_cookie" "./easylist/easyprivacy" "./easylist/fanboy-addon")
25-
26-
for dir in "${subdirectories[@]}"; do
27-
for file in "$dir"/*; do
28-
if [ -f "$file" ]; then
29-
echo "Processing file: $file"
30-
mkdir -p $file;
31-
echo $file;
32-
./$file | ./hostsblock/hostsblock - > ./EasyListMirror/$dir/$file/hosts;
33-
fi
34-
done
23+
declare -A raws
24+
raws[ABPindo+EasyList]=https://easylist-downloads.adblockplus.org/abpindo+easylist.txt
25+
raws[ABPVNList+EasyList]=https://easylist-downloads.adblockplus.org/abpvn+easylist.txt
26+
raws[Bulgarianlist+EasyList]=https://easylist-downloads.adblockplus.org/bulgarian_list+easylist.txt
27+
raws[NordicFilters+EasyList]=https://easylist-downloads.adblockplus.org/dandelion_sprouts_nordic_filters+easylist.txt
28+
raws[EasyListChina+EasyList]=https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
29+
raws[EasyListCzechandSlovak+EasyList]=https://easylist-downloads.adblockplus.org/easylistczechslovak+easylist.txt
30+
raws[EasyListDutch+EasyList]=https://easylist-downloads.adblockplus.org/easylistdutch+easylist.txt
31+
raws[EasyListGermany+EasyList]=https://easylist-downloads.adblockplus.org/easylistgermany+easylist.txt
32+
raws[EasyListHebrew+EasyList]=https://easylist-downloads.adblockplus.org/israellist+easylist.txt
33+
raws[EasyListItaly+EasyList]=https://easylist-downloads.adblockplus.org/easylistitaly+easylist.txt
34+
raws[EasyListLithuania+EasyList]=https://easylist-downloads.adblockplus.org/easylistlithuania+easylist.txt
35+
raws[EasyListPolish+EasyList]=https://easylist-downloads.adblockplus.org/easylistpolish+easylist.txt
36+
raws[EasyListPortuguese+EasyList]=https://easylist-downloads.adblockplus.org/easylistportuguese+easylist.txt
37+
raws[EasyListSpanish+EasyList]=https://easylist-downloads.adblockplus.org/easylistspanish+easylist.txt
38+
raws[IndianList+EasyList]=https://easylist-downloads.adblockplus.org/indianlist+easylist.txt
39+
raws[KoreanList+EasyList]=https://easylist-downloads.adblockplus.org/koreanlist+easylist.txt
40+
raws[LatvianList+EasyList]=https://easylist-downloads.adblockplus.org/latvianlist+easylist.txt
41+
raws[ListeAR+ListeFR+EasyList]=https://easylist-downloads.adblockplus.org/liste_ar+liste_fr+easylist.txt
42+
raws[ListeFR+EasyList]=https://easylist-downloads.adblockplus.org/liste_fr+easylist.txt
43+
raws[ROList+EasyList]=https://easylist-downloads.adblockplus.org/rolist+easylist.txt
44+
raws[RuAdList+EasyList]=https://easylist-downloads.adblockplus.org/ruadlist+easylist.txt
45+
raws[EasyList_noadult]=https://easylist-downloads.adblockplus.org/easylist_noadult.txt
46+
raws[antiadblockfilters]=https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
47+
raws[easylist_noelemhide]=https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt
48+
raws[EasyList]=https://easylist-downloads.adblockplus.org/easylist.txt
49+
curl -s ${raws[EasyList]} | ./hostsblock/hostsblock - > hosts
50+
unset raws[EasyList]
51+
for raw in "${!raws[@]}"; do
52+
mkdir -p $raw
53+
echo $raw
54+
echo ${raws[$raw]}
55+
curl -s ${raws[$raw]} | ./hostsblock/hostsblock - > ./$raw/hosts
3556
done
57+
mkdir -p EasyListAllCombined
58+
sort hosts **/hosts | uniq > ./EasyListAllCombined/hosts
59+
git clone https://github.com/easylist/easylist.git
3660
sudo rm -rf hostsblock
3761
sudo rm -rf easylist
3862
env:

0 commit comments

Comments
 (0)