forked from cdlaimin/FileList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path'
29 lines (26 loc) · 683 Bytes
/
'
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
#!/bin/sh
cd `dirname $0`
git reset --hard
git pull
git submodule update --init
for i in gfwlist genpac
do
(cd $i;git pull origin master)
done
rm -rf env
virtualenv env
source env/bin/activate
(cd genpac;python setup.py install)
env/bin/genpac \
--pac-proxy "SOCKS5 127.0.0.1:1080" \
--gfwlist-url - \
--gfwlist-local gfwlist/gfwlist.txt \
-o gfwlist.pac
sed -e '5d' -e '3d' -i gfwlist.pac
deactivate
echo "最后一次更新时间 $(LANG=C date +"%Y-%m-%d %H:%M:%S") \n
https://raw.githubusercontent.com/cdlaimin/gfwlist2pac/master/gfwlist.pac
" > /root/gfwlist2pac/README.md
git add .
git commit -m "[$(LANG=C date +"%Y-%m-%d %H:%M:%S")]auto update"
git push origin master