-
Notifications
You must be signed in to change notification settings - Fork 103
/
generate.sh
executable file
·58 lines (43 loc) · 904 Bytes
/
generate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
pre() {
local count=$(find scripts/_pre_ -maxdepth 1 -type f -iname "*.sh" | wc -l)
[ $count == 0 ] && return
for file in scripts/_pre_/*.sh
do
"$file"
done
echo "[pre]: done."
}
post() {
local count=$(find scripts/_post_ -maxdepth 1 -type f -iname "*.sh" | wc -l)
[ $count == 0 ] && return
for file in scripts/_post_/*.sh
do
"$file"
done
echo "[post]: done."
}
main() {
# ad domain list
scripts/adlist/adlist.sh
# china domain list
scripts/chinalist/chinalist.sh
# gfw domain list
scripts/gfwlist/gfwlist.sh
# ------------------------------
# adblock
scripts/adblock/adblock.sh
# chnroute
scripts/chnroute/chnroute.sh
# pac
scripts/pac/pac.sh
# shadowrocket
scripts/shadowrocket/shadowrocket.sh
# trackerlist
scripts/trackerlist/trackerlist.sh
# ublacklist
scripts/ublacklist/ublacklist.sh
}
pre
main
post