~bzr-log-rss-devel/bzr-log-rss/trunk

« back to all changes in this revision

Viewing changes to rss.sh

  • Committer: Johann C. Rocholl
  • Date: 2008-02-06 14:16:06 UTC
  • Revision ID: johann@rocholl.net-20080206141606-yntwmvtrl7t2vr2y
Replaced groups of echo statements with cat <<EOF to remove inconsistent quoting and improve readability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
URL=http://codebrowse.launchpad.net/~bzr-log-rss-devel/bzr-log-rss/trunk/
8
8
LANGUAGE=en-us
9
9
 
10
 
echo '<?xml version="1.0"?>'
11
 
echo '<rss version="2.0">'
12
 
echo '<channel>'
13
 
echo "<title>$TITLE</title>"
14
 
echo "<link>$URL</link>"
15
 
echo "<description>$DESCRIPTION</description>"
16
 
echo "<language>$LANGUAGE</language>"
17
 
echo '<generator>bzr-log-rss v0.1</generator>'
 
10
cat <<EOF
 
11
<?xml version="1.0"?>
 
12
<rss version="2.0">
 
13
<channel>
 
14
<title>$TITLE</title>
 
15
<link>$URL</link>
 
16
<description>$DESCRIPTION</description>
 
17
<language>$LANGUAGE</language>
 
18
<generator>bzr-log-rss v0.1</generator>
 
19
EOF
18
20
 
19
21
bzr log --verbose --revision -20.. --rss | sed "s|<link>|<link>$URL|"
20
22
 
21
 
echo '</channel>'
22
 
echo '</rss>'
 
23
cat <<EOF
 
24
</channel>
 
25
</rss>
 
26
EOF