Updating branch refs/heads/master
         to ec810682999df35032d665b8010f846d841d8c6f (commit)
       from 18ab34bdc82aa1890f7924c3ab9422739f7ddb3b (commit)

commit ec810682999df35032d665b8010f846d841d8c6f
Author: Christian Dywan <christ...@twotoasts.de>
Date:   Fri Oct 2 23:13:47 2009 +0200

    Provide default adblock config with easylist

 data/extensions/adblock/config |    2 ++
 wscript                        |   10 ++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/data/extensions/adblock/config b/data/extensions/adblock/config
new file mode 100644
index 0000000..8b1daa5
--- /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 de8d813..8c0df74 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')
 
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to