summaryrefslogtreecommitdiffstats
path: root/generate-conf-file.pl
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2011-06-02 20:53:20 +0000
committerDexter Morgan <dmorgan@mageia.org>2011-06-02 20:53:20 +0000
commit702fc2aeaeac4279675036a59558e65780646b51 (patch)
tree13cca83b33be751584ede5d014eb2af4af7bb731 /generate-conf-file.pl
downloadcontrol-center-702fc2aeaeac4279675036a59558e65780646b51.tar
control-center-702fc2aeaeac4279675036a59558e65780646b51.tar.gz
control-center-702fc2aeaeac4279675036a59558e65780646b51.tar.bz2
control-center-702fc2aeaeac4279675036a59558e65780646b51.tar.xz
control-center-702fc2aeaeac4279675036a59558e65780646b51.zip
Branch for updates
Diffstat (limited to 'generate-conf-file.pl')
-rwxr-xr-xgenerate-conf-file.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/generate-conf-file.pl b/generate-conf-file.pl
new file mode 100755
index 00000000..b20e4cfd
--- /dev/null
+++ b/generate-conf-file.pl
@@ -0,0 +1,30 @@
+#!/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 lib qw(./lib);
+
+package common;
+
+sub N_ { $_[0] }
+
+package main;
+
+use MDV::Control_Center;
+
+output('mcc.conf', map { s/ /_/g; "ENABLE_$_=yes\n" } sort keys %programs);