[Mageia-sysadm] [256] More verbose on new blog post to translate
root at mageia.org
root at mageia.org
Tue Nov 16 14:11:13 CET 2010
Revision: 256
Author: dams
Date: 2010-11-16 14:11:13 +0100 (Tue, 16 Nov 2010)
Log Message:
-----------
More verbose on new blog post to translate
Modified Paths:
--------------
puppet/modules/blog/templates/check_new-blog-post.sh
Modified: puppet/modules/blog/templates/check_new-blog-post.sh
===================================================================
--- puppet/modules/blog/templates/check_new-blog-post.sh 2010-11-15 21:39:24 UTC (rev 255)
+++ puppet/modules/blog/templates/check_new-blog-post.sh 2010-11-16 13:11:13 UTC (rev 256)
@@ -22,8 +22,11 @@
echo "NO" >> $PATH_TO_FILE"/last_check"
else
# New post to translate
+ cat $PATH_TO_FILE"/last_check" > $PATH_TO_FILE"/last_need_translation"
+ new_post=$(grep "title" $PATH_TO_FILE"/RSS_new" | head -n 2 | sed '1d' | sed 's/<title>//' | sed 's/<\/title>//' | sed 's/^[ \t]*//')
+ echo $new_post >> $PATH_TO_FILE"/last_need_translation"
echo "YES" >> $PATH_TO_FILE"/last_check"
- echo "A new blog post is waiting for translation" | /bin/mail -s "New entry on English Blog" mageia-blogteam at mageia.org
+ echo "A new blog post is waiting for translation\n\"$new_post\"" | /bin/mail -s "New entry on English Blog" mageia-blogteam at mageia.org
echo $DATE
fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101116/b4e0215b/attachment.html>
More information about the Mageia-sysadm
mailing list