From ec810682999df35032d665b8010f846d841d8c6f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 2 Oct 2009 23:13:47 +0200 Subject: [PATCH] Provide default adblock config with easylist --- data/extensions/adblock/config | 2 ++ wscript | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 data/extensions/adblock/config diff --git a/data/extensions/adblock/config b/data/extensions/adblock/config new file mode 100644 index 00000000..8b1daa55 --- /dev/null +++ b/data/extensions/adblock/config @@ -0,0 +1,2 @@ +[settings] +filters=http://adblockplus.mozdev.org/easylist/easylist.txt diff --git a/wscript b/wscript index de8d8137..8c0df740 100644 --- a/wscript +++ b/wscript @@ -454,6 +454,16 @@ def build (bld): bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/speeddial.json') bld.install_files ('${MDATADIR}/' + APPNAME + '/res', 'data/mootools.js') + # FIXME: Determine the library naming for other platforms + if Options.platform == 'linux': + extensions = os.listdir ('data/extensions') + for extension in extensions: + folder = 'lib' + extension + '.so' + source = 'data/extensions/' + extension + '/config' + if os.path.exists (source): + bld.install_files ('${SYSCONFDIR}/' + APPNAME + \ + '/extensions/' + folder, source) + if Options.commands['check']: bld.add_subdirs ('tests')