File: evolution-rss-migrate-feeds

package info (click to toggle)
evolution-rss 0.3.95~20140414-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,244 kB
  • ctags: 1,105
  • sloc: ansic: 16,443; makefile: 314; cpp: 224; xml: 133; sh: 50
file content (23 lines) | stat: -rwxr-xr-x 543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Migrates the evolution rss feeds stored in gconf to dconf
# requies GConf2

a=""
IFS=
XMLFEEDS=`gconftool-2 -g /apps/evolution/evolution-rss/feeds`
if [ $XMLFEEDS == 'false' ]; then
       echo "Feeds already converted. Nothing to do!"
       exit 0
for i in $XMLFEEDS; do
if [ -z $a ]; then
	a=$a$i
else
	a=$a"@"$i
fi
done
IFS=$'\n'
b=`echo $a|sed -e "s!\@!,!g"`
echo "gconf->dconf feeds migration done."
gconftool-2 -s /apps/evolution/evolution-rss/feeds --type bool 0
dconf write /org/gnome/evolution/plugin/rss/feeds \"$a\"