summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <ixce@beryl-project.org>2007-04-08 21:08:31 +0200
committerGuillaume Seguin <ixce@beryl-project.org>2007-04-08 21:08:31 +0200
commitb7bcf31160405ea3e838e827526b69bd78f45bec (patch)
treecb7414ba9bf1371935b9eae9b9e1fd25be8d692d
parent597cd27c0c363f135de89a84b9a3643a54a708e3 (diff)
downloadberyl-premerge-b7bcf31160405ea3e838e827526b69bd78f45bec.tar.gz
beryl-premerge-b7bcf31160405ea3e838e827526b69bd78f45bec.tar.bz2
Add schemas installer helper script
-rw-r--r--src/installschemas.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/installschemas.py b/src/installschemas.py
new file mode 100644
index 0000000..0de1c6e
--- /dev/null
+++ b/src/installschemas.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+# Author : Guillaume "iXce" Seguin
+# Email : ixce@beryl-project.org
+#
+# Copyright (C) 2007 Guillaume Seguin - This file is under GPLv2 license
+
+from os import listdir, system, unlink
+
+for f in listdir ("."):
+ if f[-8:] == ".options":
+ schema = "%s.schema" % f[:-8]
+ system (("bcop --schema=%s %s" % (schema, f)))
+ system (("gconftool-2 --install-schema-file=%s" % schema))
+ unlink (schema)