forked from ryanbr/fanboy-adblock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-element.sh
executable file
·29 lines (29 loc) · 3.36 KB
/
add-element.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
#!/bin/bash
git pull origin master
# hg pull -u
# pre-sort
# perl docs/sorting/sorter2.pl fanboy-adblock/fanboy-adult-generic.txt fanboy-adblock/fanboy-adult-elements.txt fanboy-adblock/fanboy-adult-firstparty.txt fanboy-adblock/fanboy-adult-thirdparty.txt fanboy-adblock/fanboy-adult-whitelists.txt
#
# perl docs/sorting/sorter2.pl fanboy-adblock/fanboy-dimensions.txt fanboy-adblock/fanboy-dimensions-whitelist.txt fanboy-adblock/fanboy-generic.txt fanboy-adblock/fanboy-popups.txt fanboy-adblock/fanboy-firstparty.txt fanboy-adblock/fanboy-thirdparty.txt fanboy-adblock/fanboy-whitelist.txt fanboy-adblock/fanboy-elements-exceptions.txt fanboy-adblock/fanboy-elements-generic.txt fanboy-adblock/fanboy-elements-specific.txt
# Fanboy Tracking
# perl docs/sorting/sorter2.pl fanboy-tracking/fanboy-tracking-generic.txt fanboy-tracking/fanboy-tracking-firstparty.txt fanboy-tracking/fanboy-tracking-thirdparty.txt fanboy-tracking/fanboy-tracking-whitelist.txt fanboy-tracking/fanboy-tracking-adult.txt fanboy-tracking/fanboy-tracking-general.txt fanboy-tracking/fanboy-tracking-nonenglish.txt
# Firefox Regional lists
perl docs/Sorting/sorter2.pl enhancedstats-addon.txt popads-domains-list.txt fanboy-clicktoload.txt fanboy-problematic-sites.txt fanboy-anticomments.txt fanboy-antimessaging.txt fanboy-cookiemonster.txt fanboy-antifacebook.txt fanboy-antifonts.txt firefox-regional/fanboy-adblocklist-cz.txt firefox-regional/fanboy-adblocklist-esp.txt firefox-regional/fanboy-adblocklist-ind.txt firefox-regional/fanboy-adblocklist-ita.txt firefox-regional/fanboy-adblocklist-jpn.txt firefox-regional/fanboy-adblocklist-krn.txt firefox-regional/fanboy-adblocklist-pol.txt firefox-regional/fanboy-adblocklist-rus-v2.txt firefox-regional/fanboy-adblocklist-swe.txt firefox-regional/fanboy-adblocklist-tky.txt firefox-regional/fanboy-adblocklist-vtn.txt
# Opera
# perl docs/sorting/sorter2.pl opera/urlfilter.ini opera/urlfilter-cz.ini opera/urlfilter-esp.ini opera/urlfilter-ind.ini opera/urlfilter-jpn.ini opera/urlfilter-krn.ini opera/urlfilter-pol.ini opera/urlfilter-rus.ini opera/urlfilter-stats.ini opera/urlfilter-tky.ini opera/urlfilter-vtn.ini opera/urlfilter-swe.ini
# IE Addon List
# perl docs/sorting/sorter2.pl ie/fanboy-adblock-addon.txt ie/fanboy-tracking-addon.txt ie/fanboy-russian-addon.txt
# Opera
#perl scripts/addChecksum-opera.pl opera/urlfilter.ini
# Checksums for regionals and others
perl scripts/addChecksum.pl fanboy-antifacebook.txt fanboy-problematic-sites.txt fanboy-clicktoload.txt popads-domains-list.txt fanboy-anticomments.txt fanboy-antimessaging.txt fanboy-antifonts.txt enhancedstats-addon.txt fanboy-cookiemonster.txt other/tracking-intl.txt firefox-regional/fanboy-adblocklist-cz.txt firefox-regional/fanboy-adblocklist-esp.txt firefox-regional/fanboy-adblocklist-ita.txt firefox-regional/fanboy-adblocklist-jpn.txt firefox-regional/fanboy-adblocklist-krn.txt firefox-regional/fanboy-adblocklist-swe.txt firefox-regional/fanboy-adblocklist-tky.txt firefox-regional/fanboy-adblocklist-vtn.txt firefox-regional/fanboy-adblocklist-ind.txt firefox-regional/fanboy-adblocklist-pol.txt
# Internet Explorer
# perl scripts/addChecksum.pl ie/fanboy-adblock-addon.txt ie/fanboy-tracking-addon.txt ie/fanboy-russian-addon.txt
# Commit
# git commit -a -m "$1"
# Parse URLS better
git commit -a -m "$(echo "$1" | sed "s!\.\([^./]*\(/\|$\)\)! \1!")"
git push origin master
# Commit (HG)
# hg commit -m "$1"
# hg push