aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/convertsession
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2001-07-31 05:30:56 +0000
committerMystery Man <unknown@mandriva.org>2001-07-31 05:30:56 +0000
commit554855919ae7b109801c93c9f6ca212d5c0b6483 (patch)
tree62776857120c45deb3a2ac56481008fa27b17ec8 /sbin/convertsession
parent8872a532d7b144d3e2cf655db6a1644f656033b0 (diff)
downloadcommon-data-topic/Eazel.tar
common-data-topic/Eazel.tar.gz
common-data-topic/Eazel.tar.bz2
common-data-topic/Eazel.tar.xz
common-data-topic/Eazel.zip
This commit was manufactured by cvs2svn to create branch 'Eazel'.topic/Eazel
Diffstat (limited to 'sbin/convertsession')
-rw-r--r--sbin/convertsession31
1 files changed, 0 insertions, 31 deletions
diff --git a/sbin/convertsession b/sbin/convertsession
deleted file mode 100644
index 794ef07..0000000
--- a/sbin/convertsession
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/perl
-# -*- Mode: cperl -*-
-# Copyright (C) 2000 by Chmouel Boudjnah <chmouel@mandrakesoft.com>
-# Redistribution of this file is permitted under the terms of the GNU
-# Public License (GPL)
-## description: Convert a file /etc/X11/window-managers to a
-## /etc/X11/wmsession.d/ style files.
-
-my $dir = '/etc/X11/wmsession.d/';
-
-if ($ARGV[0] =~ /-f/ ) {
- $file = $ARGV[1];
-} else {
- $file = '/etc/X11/window-managers';
-}
-
-my $cnt = 0;
-
-open F, $file or die "Can't open $file\n";
-while (<F>) {
- $/ = "--@@--";
- s|--@@--||g;
- if ($cnt != 0) {
- $content = "$_";
- $n = $1 if /^NAME=(.*)/m;
- open C, ">$dir/$cnt$n" or die "Can't open $dir/$cnt$n\n";
- print C $content;
- close C;
- }
- $cnt++;
-}