From fdfb4b32c68046917cd6f68bd8ea6aba6245cd66 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 14 May 2012 16:32:33 +0200 Subject: [PATCH] more RSS handling:
 tags

---
 misc/tools/conflict-rss.sh | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

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() -- 2.39.2