summaryrefslogtreecommitdiffstats
path: root/generate-conf-file.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-28 14:58:36 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-28 14:58:36 +0000
commite2823ec46af81c6aa19fed837f5d3ae480e9b584 (patch)
tree16706eb1ad7e3b939b710332332e51ecae4372c1 /generate-conf-file.pl
parentdbf3eedfa26354380361a88d095dab7f02ec0cae (diff)
downloadcontrol-center-e2823ec46af81c6aa19fed837f5d3ae480e9b584.tar
control-center-e2823ec46af81c6aa19fed837f5d3ae480e9b584.tar.gz
control-center-e2823ec46af81c6aa19fed837f5d3ae480e9b584.tar.bz2
control-center-e2823ec46af81c6aa19fed837f5d3ae480e9b584.tar.xz
control-center-e2823ec46af81c6aa19fed837f5d3ae480e9b584.zip
add a wrapper to generate a config file enabling to disabling some icons
Diffstat (limited to 'generate-conf-file.pl')
-rwxr-xr-xgenerate-conf-file.pl22
1 files changed, 22 insertions, 0 deletions
diff --git a/generate-conf-file.pl b/generate-conf-file.pl
new file mode 100755
index 00000000..97527992
--- /dev/null
+++ b/generate-conf-file.pl
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2008 Mandriva
+# Thierry Vignaud <tvignaud@mandriva.com>
+#
+# This program is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+use MDK::Common;
+use MDV::Control_Center;
+
+output('mcc.conf', map { s/ /_/g; "ENABLE_$_=yes\n" } sort keys %programs);