From b28967c70bc67b8e2066509350eac03f4220d3b7 Mon Sep 17 00:00:00 2001 From: svntobi Date: Thu, 23 Aug 2007 23:45:30 +0000 Subject: renamed convert script, to avoid trouble with vdrdevel git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@5950 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- submenu2menuorg | 86 --------------------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100755 submenu2menuorg (limited to 'submenu2menuorg') diff --git a/submenu2menuorg b/submenu2menuorg deleted file mode 100755 index b64de43..0000000 --- a/submenu2menuorg +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash -# -# vdr-menuorg - A plugin for the Linux Video Disk Recorder -# Copyright (C) 2007 Thomas Creutz, Tobias Grimm -# -# 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 of the License, 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 -# -# $Id$ -# - -usage="usage: $0 submenu-file menuorg-file" - -if [ a"$1" == a"" ] || ! [ -f $1 ]; then echo $usage && exit 1; fi -if [ a"$2" == a"" ]; then echo $usage && exit 1; fi - -declare -a menu - -echo -n "read the input file... " -while read line -do - menuLevel=`echo $line|cut -d: -f1` - kindOfItem=`echo $line|cut -d: -f2` - name=`echo $line|cut -d: -f3` - - if [ a"$kindOfItem" != a"" ] && [ "$kindOfItem" != "0" ] - then - menu[$menuLevel]="${menu[$menuLevel]} ${kindOfItem};$name" - else - menu[$menuLevel]="${menu[$menuLevel]} $name" - fi -done < $1 -echo done - -echo -n "write the xml to the output file... " -{ - echo "" - for item in `echo ${menu[0]}` - do - case $item - in - Schedule) echo " ";; - Channels) echo " ";; - Timers) echo " ";; - Recordings) echo " ";; - Setup) echo " ";; - Commands) echo " ";; - - [1-9]*) - echo " " - - index=`echo $item|cut -d';' -f1` - for Subitem in `echo ${menu[$index]}` - do - case $Subitem - in - Schedule) echo " ";; - Channels) echo " ";; - Timers) echo " ";; - Recordings) echo " ";; - Setup) echo " ";; - Commands) echo " ";; - *) echo " ";; - esac - done - - echo " " - ;; - - *) echo " ";; - esac - done - echo "" -} > $2 -echo done -- cgit v1.2.3