From: Rudolf Polzer Date: Mon, 14 May 2012 14:32:33 +0000 (+0200) Subject: more RSS handling:
 tags
X-Git-Tag: xonotic-v0.7.0~55^2~15
X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=fdfb4b32c68046917cd6f68bd8ea6aba6245cd66

more RSS handling: 
 tags
---

diff --git a/misc/tools/conflict-rss.sh b/misc/tools/conflict-rss.sh
index f92fd5e3..c9590029 100755
--- a/misc/tools/conflict-rss.sh
+++ b/misc/tools/conflict-rss.sh
@@ -30,11 +30,11 @@ to_rss()
 
 	filename=`echo -n "$name" | tr -c 'A-Za-z0-9' '_'`.rss
 	outfilename="$outdir/$filename"
-	datetime=`date --rfc-2822`
-	branch=`echo "$branch" | escape_html`
-	repo=`echo "$repo" | escape_html`
+	branch=`echo -n "$branch" | escape_html`
+	repo=`echo -n "$repo" | escape_html`
 
 	if ! [ -f "$outfilename" ]; then
+		datetime=`date --rfc-2822`
 		cat >"$outfilename" <
 
@@ -42,9 +42,9 @@ to_rss()
 	Merge conflicts for $name
 	http://git.xonotic.org/
 	...
-	$datetime
 	3600
 	
+	$datetime
 EOF
 	fi
 	cat >>"$outfilename" <http://de.git.xonotic.org/conflicts/$filename#$hash-$masterhash
 		" >>"$outfilename"
 	escape_html >>"$outfilename"
+	echo "
" >>"$outfilename" cat >>"$outfilename" < @@ -65,7 +67,11 @@ EOF clear_rss() { - sed -i -e '//,$d' "$1" + datetime=`date --rfc-2822` + sed -i -e '//,$d' "$1" + cat <"$1" + $datetime +EOF } finish_rss()