diff options
author | Damien Lallement <dams@mageia.org> | 2010-11-16 13:11:13 +0000 |
---|---|---|
committer | Damien Lallement <dams@mageia.org> | 2010-11-16 13:11:13 +0000 |
commit | 5b8b831a8c49be8d6d48fe07532c1ae8f1661d1d (patch) | |
tree | 6cdbcc247e6793397acce044a31389a5b713d848 /modules | |
parent | 4e5a3774f1201da5788f4a6bf80c01dc5e317b4c (diff) | |
download | puppet-5b8b831a8c49be8d6d48fe07532c1ae8f1661d1d.tar puppet-5b8b831a8c49be8d6d48fe07532c1ae8f1661d1d.tar.gz puppet-5b8b831a8c49be8d6d48fe07532c1ae8f1661d1d.tar.bz2 puppet-5b8b831a8c49be8d6d48fe07532c1ae8f1661d1d.tar.xz puppet-5b8b831a8c49be8d6d48fe07532c1ae8f1661d1d.zip |
More verbose on new blog post to translate
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/blog/templates/check_new-blog-post.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/blog/templates/check_new-blog-post.sh b/modules/blog/templates/check_new-blog-post.sh index f342782c..bac3425f 100755 --- a/modules/blog/templates/check_new-blog-post.sh +++ b/modules/blog/templates/check_new-blog-post.sh @@ -22,8 +22,11 @@ if [ "$tmp_old" = "$tmp_new" ] 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@mageia.org + echo "A new blog post is waiting for translation\n\"$new_post\"" | /bin/mail -s "New entry on English Blog" mageia-blogteam@mageia.org echo $DATE fi |