#!/bin/sh # # Copyright (C) 2011 Rubén Rodríguez <ruben@trisquel.info> # # 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # VERSION=3 . ./config #remove references to Opera and Mozilla sed '/opera/ s/^.*$/<description>Selects which browser to use to open external links.<\/description>/' -i net.sf.liferea.gschema.xml* sed 's/Firefox/Abrowser/g; s/firefox/abrowser/g; /google-chrome/,/{/d; /opera/,/{/d' -i src/browser.c rm debian/patches/ubuntu-example-feeds.patch debian/patches/debian-example-feeds.patch sed '/ubuntu-example-feeds/d; /debian-example-feeds/d;' debian/patches/series -i #rm opml/feedlist_* #sed '/feedlist_/d; s/\(.*feedlist.opml.*\)/\1\n\tfeedlist_es.opml/;' opml/Makefile.* -i cat << EOF > opml/feedlist <?xml version="1.0"?> <opml version="1.0"> <head> <title>Liferea Default Feed List</title> <!-- translate this for localized feed list --> </head> <body> <outline text="Trisquel GNU/Linux"> <!-- translate this for localized feed list --> <outline text="News" htmlUrl="http://trisquel.info/" xmlUrl="http://trisquel.info/en/node/feed" /> <outline text="Release announcements" htmlUrl="http://trisquel.info/" xmlUrl="http://trisquel.info/en/taxonomy/term/700/0/feed" /> <outline text="Forum" htmlUrl="http://trisquel.info/en/forum" xmlUrl="http://trisquel.info/en/taxonomy/term/50/0/feed" /> <outline text="Trisquel at Reddit" htmlUrl="http://www.reddit.com/r/gnu" xmlUrl="http://www.reddit.com/r/trisquel/.rss" /> </outline> <outline text="Free Software"> <!-- translate this for localized feed list --> <outline text="What's New at GNU" htmlUrl="http://www.gnu.org/" xmlUrl="http://www.gnu.org/rss/whatsnew.rss" /> <outline text="FSF News" htmlUrl="http://www.fsf.org/" xmlUrl="http://static.fsf.org/fsforg/rss/news.xml" /> <outline text="FSF Events" htmlUrl="http://www.fsf.org/" xmlUrl="http://static.fsf.org/fsforg/rss/events.xml" /> <outline text="FSF Blogs" htmlUrl="http://www.fsf.org/" xmlUrl="http://static.fsf.org/fsforg/rss/blogs.xml" /> <outline text="fsdaily.com - Free Software News" htmlUrl="http://www.fsdaily.com/" xmlUrl="http://www.fsdaily.com/feed/published/All" /> <outline text="GNU at Reddit" htmlUrl="http://www.reddit.com/r/gnu" xmlUrl="http://www.reddit.com/r/gnu/.rss" /> </outline> <!-- the following search folders should also be in sync for all feed lists --> <!-- Do only translate the @text attributes in all of the following <outline> tags! --> <outline text="Unread" title="Unread" description="Unread" type="vfolder" htmlUrl="" xmlUrl="vfolder"> <outline type="rule" text="Read status" rule="unread" value="" additive="true"/> </outline> <outline text="Important" title="Important" description="Important" type="vfolder" htmlUrl="" xmlUrl="vfolder"> <outline type="rule" text="Flag status" rule="flagged" value="" additive="true"/> </outline> <!-- end of search folder block --> </body> </opml> EOF for feed in opml/feedlist_* do cat opml/feedlist > $feed done rm opml/feedlist cat << EOF > opml/feedlist_es.opml <?xml version="1.0"?> <opml version="1.0"> <head> <title>Liferea Default Feed List</title> <!-- translate this for localized feed list --> </head> <body> <outline text="Trisquel GNU/Linux"> <!-- translate this for localized feed list --> <outline text="Noticias" htmlUrl="http://trisquel.info/" xmlUrl="http://trisquel.info/es/node/feed" /> <outline text="Foro" htmlUrl="http://trisquel.info/es/forum" xmlUrl="http://trisquel.info/es/taxonomy/term/29/0/feed" /> <outline text="Anuncio de nuevas versiones" htmlUrl="http://trisquel.info/" xmlUrl="http://trisquel.info/en/taxonomy/term/700/0/feed" /> <outline text="Trisquel en Reddit" htmlUrl="http://www.reddit.com/r/gnu" xmlUrl="http://www.reddit.com/r/trisquel/.rss" /> </outline> <outline text="Free Software"> <!-- translate this for localized feed list --> <outline text="What's New at GNU" htmlUrl="http://www.gnu.org/" xmlUrl="http://www.gnu.org/rss/whatsnew.rss" /> <outline text="FSF News" htmlUrl="http://www.fsf.org/" xmlUrl="http://static.fsf.org/fsforg/rss/news.xml" /> <outline text="FSF Events" htmlUrl="http://www.fsf.org/" xmlUrl="http://static.fsf.org/fsforg/rss/events.xml" /> <outline text="FSF Blogs" htmlUrl="http://www.fsf.org/" xmlUrl="http://static.fsf.org/fsforg/rss/blogs.xml" /> <outline text="fsdaily.com - Free Software News" htmlUrl="http://www.fsdaily.com/" xmlUrl="http://www.fsdaily.com/feed/published/All" /> <outline text="GNU en Reddit" htmlUrl="http://www.reddit.com/r/gnu" xmlUrl="http://www.reddit.com/r/gnu/.rss" /> </outline> <!-- the following search folders should also be in sync for all feed lists --> <!-- Do only translate the @text attributes in all of the following <outline> tags! --> <outline text="Unread" title="Unread" description="Unread" type="vfolder" htmlUrl="" xmlUrl="vfolder"> <outline type="rule" text="Read status" rule="unread" value="" additive="true"/> </outline> <outline text="Important" title="Important" description="Important" type="vfolder" htmlUrl="" xmlUrl="vfolder"> <outline type="rule" text="Flag status" rule="flagged" value="" additive="true"/> </outline> <!-- end of search folder block --> </body> </opml> EOF changelog "Compiled for Trisquel" compile