Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 31st, 2013  |  syntax: None  |  size: 0.72 KB  |  views: 142  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. #
  3. OPERADIR="/BOX/Dropbox/Linux/Opera"
  4. FANBOYINI="http://www.fanboy.co.nz/adblock/opera/complete/urlfilter.ini"
  5. FANBOYCSS="http://www.fanboy.co.nz/adblock/opera/fanboy-adblocklist-elements-v4.css"
  6. ADFILTERDIR="/home/westmin/Build/adfiltering-rules-read-only"
  7. PRIVOXYDIR="/etc/privoxy"
  8.  
  9. wget -c -P ${OPERADIR} ${FANBOYINI}
  10. wget -c -P ${OPERADIR} ${FANBOYCSS}
  11. svn cleanup ${ADFILTERDIR}
  12. svn update ${ADFILTERDIR}
  13.  
  14. blocklist-to-privoxy -o ${PRIVOXYDIR}/urlfilter.action ${OPERADIR}/urlfilter.ini
  15. blocklist-to-privoxy -o ${PRIVOXYDIR}/urlfilter-chn.action ${ADFILTERDIR}/trunk/lastest/urlfilter.ini
  16. cat ${OPERADIR}/fanboy-adblocklist-elements-v4.css ${ADFILTERDIR}/trunk/lastest/Custom.css > ${OPERADIR}/custom.css
clone this paste RAW Paste Data